-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (40 loc) · 1.1 KB
/
deploy-pages.yml
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
name: deploy-pages
on:
push:
branches: "main"
paths-ignore:
- README.md
- LICENSE
- .gitignore
- .vscode/**
- tests/**
- .github/**
- "!.github/workflows/deploy-pages.yml"
workflow_dispatch:
concurrency: ${{ github.workflow }}
jobs:
deploy-pages:
permissions:
pages: write
id-token: write
deployments: write
environment:
name: github-pages
url: ${{ steps.deploy-pages.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: rustup target add wasm32-unknown-unknown
- uses: cargo-bins/cargo-binstall@main
- run: cargo binstall cargo-component -y
- run: |
cargo binstall --git https://github.com/bytecodealliance/wit-bindgen wit-bindgen-cli -y
- id: configure-pages
uses: actions/configure-pages@v4
- run: make build
- run: make build-docs
env:
BASE_URL: ${{ steps.configure-pages.outputs.base_url }}/
- uses: actions/upload-pages-artifact@v3
- id: deploy-pages
uses: actions/deploy-pages@v4