🚀 Update deploy script #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy | |
on: | |
push: | |
branches: | |
- develop | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Begin CI... | |
uses: actions/checkout@v2 | |
- name: Install pnpm | |
run: corepack prepare pnpm@latest --activate | |
- name: Install dependencies | |
run: pnpm i | |
- name: Test | |
run: pnpm test --ci --coverage --maxWorkers=2 | |
- name: Build | |
run: pnpm build | |
env: | |
NEXT_PUBLIC_GA_MEASUREMENT_ID: ${{ secrets.GA_MEASUREMENT_ID }} | |
- name: Publish | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_branch: master | |
publish_dir: ./out |