Merge branch 'main' of github.com:jonogon/jonogon-web #12
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: Jonogon Web to Cloudflare | |
on: | |
push: | |
branches: | |
- production | |
paths: | |
- apps/jonogon-web/**/* | |
- .github/workflows/web-to-cloudflare.yml | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 22 | |
- run: npm install -g pnpm | |
- run: pnpm install | |
- run: pnpm build | |
- run: pnpx wrangler pages deploy --project-name jonogon-web --branch main ./ | |
working-directory: ./apps/jonogon-web/dist/ | |
env: | |
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} |