-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (33 loc) · 918 Bytes
/
single-file.yml
File metadata and controls
41 lines (33 loc) · 918 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Create single file build
on:
push:
branches: ["*"]
workflow_dispatch:
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "22" # Using latest Node 22 for 2026 compatibility
- name: Install dependencies
working-directory: Build
run: npm i
- name: Build
working-directory: Build
run: npm run build:single
- name: Rename for distribution
working-directory: Build/dist
run: mv index.html HTMLPlayer-v2.html
- name: Upload Build Artifact
uses: actions/upload-artifact@v4
with:
name: HTMLPlayer-Standalone
path: Build/dist/HTMLPlayer-v2.html
if-no-files-found: error