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 Frontend | |
on: | |
push: | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
name: π Deploy Frontend | |
steps: | |
- name: β¬οΈ Checkout repo | |
uses: actions/checkout@v3 | |
- name: π₯ Prepare dependencies | |
uses: ./.github/actions/prepare | |
- name: π¦ Build | |
run: | | |
export NODE_OPTIONS="--max_old_space_size=4096" | |
yarn workspace songbook-frontend build-ci | |
- name: π Publish | |
if: github.ref_name == 'main' | |
run: | | |
set -xe | |
cd frontend | |
which wrangler | |
wrangler pages publish dist --project-name songbook | |
env: | |
CLOUDFLARE_API_TOKEN: ${{ secrets.CF_API_TOKEN }} | |
CLOUDFLARE_ACCOUNT_ID: cce7f3b93d1cc5016fffc6068a30a3bb |