Skip to content

fix: nix build worker #1

fix: nix build worker

fix: nix build worker #1

Workflow file for this run

name: Deploy to production
on:
workflow_dispatch:
push:
branches:
- main
paths:
- ".github/workflows/deploy.yml"
- "wrangler.toml"
- "src/**/**.rs"
- "Cargo.toml"
- "Cargo.lock"
- "rust-toolchain.toml"
jobs:
check:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: checks
run: |
cargo fmt --all --check
deploy:
needs: [check]
runs-on: ubuntu-22.04
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:

Check failure on line 41 in .github/workflows/deploy.yml

View workflow run for this annotation

GitHub Actions / Deploy to production

Invalid workflow file

The workflow is not valid. .github/workflows/deploy.yml (Line: 41, Col: 13): Unexpected value ''
# 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