Bump serde from 1.0.215 to 1.0.216 #22
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and deploy to Cloudflare Workers | |
on: | |
push: | |
workflow_dispatch: | |
concurrency: | |
group: deploy | |
cancel-in-progress: false | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
name: Build and Deploy master | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Cache build | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.cargo/bin/ | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
~/.cargo/.crates.toml | |
~/.cargo/.crates2.json | |
target/ | |
node_modules/ | |
/usr/share/rust/.rustup/ | |
key: ${{ runner.os }}-${{ hashFiles('Cargo.lock') }}-${{ hashFiles('package-lock.json') }} | |
restore-keys: ${{ runner.os }}- | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
targets: "wasm32-unknown-unknown" | |
- name: Build | |
run: | | |
npm install | |
npx wrangler deploy --dry-run | |
- name: Deploy | |
if: ${{ github.ref_type == 'branch' && github.ref_name == 'master' }} | |
env: | |
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }} | |
CLOUDFLARE_API_TOKEN: ${{ secrets.CF_TOKEN }} | |
run: | | |
npm install | |
npx wrangler deploy |