更新 sitemap #131
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 to GH Pages | |
on: | |
push: | |
branches: [ master ] | |
env: | |
RUST_VERSION: 1.67 | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install wasm target | |
run: rustup target add wasm32-unknown-unknown | |
- name: Install wasm-bindgen-cli | |
run: cargo install wasm-bindgen-cli --version=0.2.87 | |
- name: Build WASM | |
run: | | |
sh build-wasm.sh | |
- name: Install and Build vitepress | |
run: | | |
npm install | |
npm run just-build | |
- name: Copy wasm folder to dist/assets/ | |
run: cp -r docs/.vitepress/components/wasm docs/.vitepress/dist/assets/ | |
- name: Deploy | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: docs/.vitepress/dist |