-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (39 loc) · 951 Bytes
/
deploy.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
39
40
41
42
43
44
name: deploy
permissions:
id-token: write
pages: write
on:
workflow_dispatch:
push:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: install toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: wasm32-unknown-unknown
override: true
profile: minimal
- name: Install trunk
uses: jetli/trunk-action@v0.1.0
with:
version: 'latest'
- name: Build
run: trunk build --release --public-url badery-wasm-blog/
- name: Setup Pages
uses: actions/configure-pages@v3
- name: 404 fallback
run: cp ./dist/index.html ./dist/404.html
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: './dist'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2