1
mirror of https://github.com/jakejarvis/simpip.git synced 2025-10-16 08:24:28 -04:00

deploy worker the "right" way (via wrangler)

This commit is contained in:
2020-10-13 12:05:31 -04:00
parent fac302d4dd
commit 75fb393b0a
5 changed files with 49 additions and 8 deletions

View File

@@ -10,11 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: jakejarvis/cloudflare-worker-action@master
env:
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
CLOUDFLARE_AUTH_EMAIL: ${{ secrets.CLOUDFLARE_AUTH_EMAIL }}
CLOUDFLARE_AUTH_KEY: ${{ secrets.CLOUDFLARE_AUTH_KEY }}
CLOUDFLARE_ZONE_ID: ${{ secrets.CLOUDFLARE_ZONE_ID }}
CLOUDFLARE_WORKER_NAME: 'simpip'
CLOUDFLARE_SCRIPT_NAME: 'index'
- uses: cloudflare/wrangler-action@1.3.0
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
environment: 'production'