-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (33 loc) · 1.05 KB
/
cf.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Deploy to Cloudflare Pages
on:
push:
branches:
- main # Set a branch to deploy
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Change if you need git info
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32-unknown-unknown
- name: Install cargo-binsall
uses: cargo-bins/cargo-binstall@main
- name: Install wasm-pack
run: cargo binstall -y wasm-pack
- name: Install Just
uses: extractions/setup-just@v2
- name: Build deployment
run:
just build zip
- name: Setup FluentCI
uses: fluentci-io/setup-fluentci@v5
- name: Deploy
run: fluentci run --wasm cloudflare pages_deploy deploy --project-name pdb2fasta-rust-wasm-example
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}