Deploy Workers - Preview #15
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: Deploy Workers - Preview | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- dev | |
paths: | |
- "apps/workers/**" | |
jobs: | |
deploy: | |
name: Deploy Workers API | |
runs-on: ubuntu-latest | |
environment: Preview | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v3 | |
with: | |
version: latest | |
- name: Install dependencies | |
run: pnpm install | |
- name: Deploy To Cloudflare Workers | |
uses: cloudflare/wrangler-action@v3 | |
with: | |
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
workingDirectory: ./apps/workers | |
environment: preview |