-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (33 loc) · 980 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
name: deploy-github-page
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install libs
run: sudo apt-get update; sudo apt-get install --no-install-recommends g++ pkg-config libx11-dev libasound2-dev libudev-dev libwayland-dev libxkbcommon-dev libssl-dev
if: runner.os == 'linux'
- uses: dtolnay/rust-toolchain@stable
with:
target: wasm32-unknown-unknown
- name: Install trunk
uses: jetli/[email protected]
with:
version: 'latest'
- uses: Swatinem/rust-cache@v2
with:
shared-key: whist-browser
- name: Build Release
run: |
trunk build --release --public-url "${GITHUB_REPOSITORY#*/}"
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: dist