-
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (37 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
45
# Github action that rans on release
name: Deploy
on:
push:
branches:
- stable
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- 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: Install npm
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install Tailwind CSS
run: npm install -g tailwindcss
working-directory: ./polybius-web
- name: Build release
run: trunk build --release
working-directory: ./polybius-web
- name: Deploy to Github Pages
uses: actions/upload-pages-artifact@v3
with:
path: ./polybius-web/dist