learn-wgpu/.github/workflows/deploy.yml

26 lines
558 B
YAML
Raw Normal View History

name: Deploy to GH Pages
on:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
2021-12-03 17:54:50 +00:00
- name: Build WASM
2021-12-03 18:01:04 +00:00
run: |
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
sh build-wasm.sh
2021-12-03 17:54:50 +00:00
- name: Install and Build Vuepress
run: |
npm install
npm run build
- name: Deploy
uses: JamesIves/github-pages-deploy-action@4.1.5
with:
branch: gh-pages
folder: docs/.vuepress/dist