Add deployment workflow #39
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: Deploy | |
on: | |
push: | |
branches: ["main"] | |
workflow_dispatch: | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Checkout Particular | |
uses: actions/checkout@v4 | |
with: | |
repository: canleskis/particular | |
path: particular | |
- name: Setup Rust | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
target: wasm32-unknown-unknown | |
- uses: Swatinem/rust-cache@v2 | |
with: | |
workspaces: particular -> target | |
- name: Setup wasm-bindgen | |
uses: jetli/[email protected] | |
with: | |
version: "0.2.89" | |
- name: Deploy Benchmarks | |
run: | | |
bash scripts/deploy_benchmarks.sh content/benchmarks | |
- name: Deploy Examples | |
run: | | |
bash scripts/deploy_showcase.sh | |
- name: Deploy Site | |
uses: shalzz/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |