generated from oovm/RustTemplate
-
Notifications
You must be signed in to change notification settings - Fork 3
37 lines (36 loc) · 949 Bytes
/
publish.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
name: Publish Examples
on:
push:
branches: [ master, dev ]
pull_request:
branches: [ master, dev ]
permissions:
contents: write
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
target: wasm32-unknown-unknown
override: true
profile: minimal
- uses: jetli/wasm-bindgen-action@v0.2.0
- uses: jetli/trunk-action@v0.5.0
- name: Build website 💣
run: |
cd projects/katex-preview
wasm-bindgen -V
trunk -V
trunk build --release
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: projects/katex-preview/dist
CLEAN: true