refactor: change step handler input to use asymmetric pattern for bet… #78
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: Deploy | |
| on: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| concurrency: | |
| group: deploy-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| pull-requests: write # for deployment comments | |
| jobs: | |
| deploy-website: | |
| runs-on: ubuntu-latest | |
| environment: production | |
| env: | |
| NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Deploy website to production | |
| uses: ./.github/actions/deploy-website | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| atlas-cloud-token: ${{ secrets.ATLAS_CLOUD_TOKEN }} | |
| environment: production | |
| supabase-url: ${{ secrets.WEBSITE_PRODUCTION_SUPABASE_URL }} | |
| supabase-anon-key: ${{ secrets.WEBSITE_PRODUCTION_SUPABASE_ANON_KEY }} | |
| cloudflare-api-token: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| cloudflare-account-id: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
| plausible-proxy-url: ${{ secrets.WEBSITE_PLAUSIBLE_PROXY_URL }} | |
| production-url: https://pgflow.dev |