Skip to content
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