Skip to content

Commit

Permalink
ci: Define workflow to release for production environment
Browse files Browse the repository at this point in the history
  • Loading branch information
attakei committed Nov 13, 2024
1 parent 57a2d05 commit 51c290a
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/deploy-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: 'Deployment production'

on:
push:
tags:
- 'v*.*.*'

jobs:
deploy:
runs-on: 'ubuntu-latest'
name: 'Deploy workers'
environment: 'production'
steps:
- uses: actions/checkout@v4
- uses: jdx/mise-action@v2
- name: 'Deploy'
uses: cloudflare/wrangler-action@v3
with:
apiToken: '${{ secrets.CLOUDFLARE_API_TOKEN }}'
command: 'deploy --name ${{ secrets.CLOUDFLARE_WORKER_NAME }}'

0 comments on commit 51c290a

Please sign in to comment.