-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (60 loc) · 1.71 KB
/
web-demo.yaml
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: Update Web Demo
on:
workflow_dispatch:
# Allows for manual triggering
jobs:
software:
uses: joeyparrish/kinetoscope/.github/workflows/build-software.yaml@main
with:
ref: ${{ github.ref }}
for-release: true
emulators:
uses: joeyparrish/kinetoscope/.github/workflows/build-emulators.yaml@main
with:
ref: ${{ github.ref }}
for-release: true
prep-web-demo:
needs:
- software
- emulators
name: Prep Web Demo
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
path: source
- name: Pull streamer ROM
uses: actions/download-artifact@v4
with:
name: streamer-rom
path: streamer
- name: Pull Genesis Plus GX for Web
uses: actions/download-artifact@v4
with:
name: genesis-plus-gx-web
path: web
- name: Arrange web demo artifacts
run: |
mv streamer/rom.bin web/kinetoscope-streamer.rom
cp source/emulator-patches/web-demo.html web/index.html
cp source/emulator-patches/gesture-tracker.js web/
- name: Upload GitHub Pages Artifacts
uses: actions/upload-pages-artifact@v3
with:
path: web
pages:
needs:
- prep-web-demo
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
steps:
- uses: actions/deploy-pages@v4
id: deployment