-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (36 loc) · 885 Bytes
/
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
name: Github Pages
on:
push:
branches: [master,main]
paths-ignore:
- '**.yml'
- '!.github/workflows/pages.yml'
- '**.md'
- '.gitignore'
# env:
# PUBLIC_URL: /gkz-rust/
jobs:
release-wasm:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Trunk
uses: jetli/[email protected]
with:
version: "latest"
- name: Install wasm
run: |
rustup target add wasm32-unknown-unknown
- name: Trunk Build
# run: |
# trunk build --release --public-url ${{ env.PUBLIC_URL }}
run: |
trunk build --release
- name: Setup 404
run: |
cp dist/index.html dist/404.html
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: dist