Deduplication #5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |