Merge pull request #2181 from sopt-makers/develop #525
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: Production Deploy | |
| on: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| jobs: | |
| build-app: | |
| uses: ./.github/workflows/build.yml | |
| with: | |
| env: ${{ vars.PRODUCTION_ENV }} | |
| deploy: | |
| needs: build-app | |
| environment: production | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| deployments: write | |
| name: Deploy to Cloudflare Pages | |
| steps: | |
| - name: Checkout Branch | |
| uses: actions/checkout@v3 | |
| - name: Download Built App | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: built-app | |
| path: out | |
| - name: Publish | |
| run: yarn dlx wrangler pages publish "out" --project-name "${{ vars.CF_PAGES_NAME_PRODUCTION }}" --commit-message " " | |
| env: | |
| CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} |