Merge pull request #154 from Gearbox-protocol/apeir99n-patch-1 #150
This file contains hidden or 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: Release | |
| on: | |
| push: | |
| branches: | |
| - "main" | |
| - "next" | |
| env: | |
| HUSKY: 0 | |
| CI: true | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions/setup-node@v3 | |
| with: | |
| cache: "yarn" | |
| node-version-file: ".nvmrc" | |
| # No lint or prettier here since they were supposed to run on PR action | |
| - name: Build | |
| run: | | |
| yarn install --frozen-lockfile | |
| yarn build | |
| - name: Semantic Release | |
| uses: cycjimmy/semantic-release-action@v3 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| - name: Publish to Cloudflare Pages | |
| uses: cloudflare/pages-action@v1 | |
| with: | |
| apiToken: ${{ secrets.CLOUDFLARE_TOKEN }} | |
| accountId: ${{ secrets.CLOUDFLARE_ACCOUNT }} | |
| projectName: ${{ secrets.CF_PROJECT_NAME }} | |
| directory: public | |
| gitHubToken: ${{ secrets.GITHUB_TOKEN }} |