Skip to content

[Add] πŸŽ‰ Cloudflare Deploy #1

[Add] πŸŽ‰ Cloudflare Deploy

[Add] πŸŽ‰ Cloudflare Deploy #1

name: Cloudfalre Worker Deploy
on:
push:
branches:
- main
repository_dispatch:
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v2
- name: Install WASM Module
run: |
curl -L https://github.com/Harry-zklcdc/go-bingai-pass/releases/latest/download/go-bingai-pass.wasm -o cloudflare/go-bingai-pass.wasm
- name: Build & Deploy Worker
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
accountId: ${{ secrets.CF_ACCOUNT_ID }}
command: 'deploy --keep-vars --no-bundle'