Skip to content

Commit 4849dd8

Browse files
committed
Upload dist and index.html
1 parent fc44a0b commit 4849dd8

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

.github/workflows/deploy.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,16 @@ on:
99
# Allows you to run this workflow manually from the Actions tab
1010
workflow_dispatch:
1111

12-
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
1312
permissions:
1413
contents: read
1514
pages: write
1615
id-token: write
1716

18-
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
19-
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
2017
concurrency:
2118
group: "pages"
2219
cancel-in-progress: false
2320

2421
jobs:
25-
# Single deploy job since we're just deploying
2622
deploy:
2723
environment:
2824
name: github-pages
@@ -44,8 +40,10 @@ jobs:
4440
- name: Upload artifact
4541
uses: actions/upload-pages-artifact@v3
4642
with:
47-
# Upload entire repository
48-
path: '.'
43+
# Only upload index.html and dist/
44+
path: |
45+
index.html
46+
dist
4947
- name: Deploy to GitHub Pages
5048
id: deployment
5149
uses: actions/deploy-pages@v4

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ <h4>
2626
<div onClick="player.currentTrack.togglePlayPause()">Toggle Play/Pause</div>
2727
<pre id="ready">Both tracks are not loaded</pre>
2828
<pre id="status"></pre>
29-
<script type="text/javascript" src="./dist/cjs/index.cjs"></script>
29+
<script type="text/javascript" src="./dist/cjs/index.cjs" type="module"></script>
3030
<script type="text/javascript">
3131
window.player = new Gapless.Queue({
3232
tracks: [

0 commit comments

Comments
 (0)