mirror of
https://github.com/ciiiii/cloudflare-docker-proxy.git
synced 2026-04-03 11:55:06 +08:00
Deploy staging env
This commit is contained in:
23
.github/workflows/stage.yaml
vendored
Normal file
23
.github/workflows/stage.yaml
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
name: Deploy to Cloudflare Workers(Staging)
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
paths-ignore:
|
||||
- '**.md'
|
||||
repository_dispatch:
|
||||
|
||||
jobs:
|
||||
build-and-deploy:
|
||||
runs-on: ubuntu-latest
|
||||
name: Build & Deploy
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Publish
|
||||
uses: cloudflare/wrangler-action@v3
|
||||
with:
|
||||
apiToken: ${{ secrets.CF_API_TOKEN }}
|
||||
accountId: ${{secrets.CF_ACCOUNT_ID}}
|
||||
command: deploy --env staging --minify src/index.ts
|
||||
environment: staging
|
||||
Reference in New Issue
Block a user