Merge pull request #110 from jonogon/dev #61
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 Next to Cloudflare | |
on: | |
push: | |
branches: | |
- production | |
paths: | |
- apps/jonogon-web-next/**/* | |
- .github/workflows/web-next-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 turbo run build --filter @jonogon/core | |
- run: pnpm pages:build && pnpm wrangler pages deploy --branch main | |
working-directory: ./apps/jonogon-web-next/ | |
env: | |
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
NEXT_PUBLIC_FIREBASE_WEB_CONFIG_JSON_BASE64URL: ${{ secrets.NEXT_PUBLIC_FIREBASE_WEB_CONFIG_JSON_BASE64URL }} |