-
Notifications
You must be signed in to change notification settings - Fork 0
25 lines (23 loc) · 862 Bytes
/
Copy pathbuild.yml
File metadata and controls
25 lines (23 loc) · 862 Bytes
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
name: Publish
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- uses: oven-sh/setup-bun@v2
- run: bun i
- run: bun run build && echo "nyantracker.michioxd.ch" > ./dist/CNAME
- run: cp ./dist/index.html ./dist/404.html && cp ./src/lib/chiptune2/libopenmpt.js.mem ./dist/assets/libopenmpt.js.mem && cp ./node_modules/chiptune3/libopenmpt.worklet.js ./dist/assets/libopenmpt.worklet.js
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist