Skip to content

Initial commit

Initial commit #1

Workflow file for this run

name: Deploy to Cloudflare
on:
workflow_dispatch:
push:
branches:
- main
paths:
- ".github/workflows/deploy.yml"
- "wrangler.toml"
- "src/**/**.rs"
- "Cargo.toml"
- "Cargo.lock"
- "rust-toolchain.toml"
jobs:
quality-gate:
uses: ./.github/workflows/quality-gate.yml
with:
checks-command: "--all --check"
clippy-command: "-- -D warnings"
tests-command: "test"
deploy:
needs: [quality-gate]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Install worker-build
run: |
cargo install worker-build
- name: Deploy
uses: cloudflare/wrangler-action@v3
# env:
# YOUR_SECRET: ${{ secrets.YOUR_SECRET }}
# YOUR_OTHER_SECRET: ${{ secrets.YOUR_OTHER_SECRET }}
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
# secrets: |
# YOUR_SECRET
# YOUR_OTHER_SECRET