mirror of https://github.com/sotrh/learn-wgpu
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
620 B
YAML
29 lines
620 B
YAML
name: Deploy to GH Pages
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Build WASM
|
|
run: |
|
|
rustup target add wasm32-unknown-unknown
|
|
sh build-wasm.sh
|
|
|
|
- name: Install and Build Vuepress
|
|
run: |
|
|
export NODE_OPTIONS=--openssl-legacy-provider
|
|
yarn install
|
|
yarn just-build
|
|
|
|
- name: Deploy
|
|
uses: JamesIves/github-pages-deploy-action@4.1.5
|
|
with:
|
|
branch: gh-pages
|
|
folder: docs/.vuepress/dist
|