feat: add worker_functions table and stopped_at column to workers (#504) #33
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 | |
| - uses: ./.github/actions/setup | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| atlas-cloud-token: ${{ secrets.ATLAS_CLOUD_TOKEN }} | |
| - name: Deploy website to production | |
| uses: ./.github/actions/deploy-website | |
| with: | |
| 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 |