Skip to content
This repository has been archived by the owner on Nov 22, 2024. It is now read-only.

Commit

Permalink
fix filename
Browse files Browse the repository at this point in the history
  • Loading branch information
Bao Zhiyuan committed Aug 29, 2024
1 parent ac754be commit f88ca79
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ jobs:
with:
node-version-file: '.nvmrc'
- name: build pages
run: node .src/build.mjs
run: node src/build.mjs
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: '.dist'
path: 'dist'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
4 changes: 2 additions & 2 deletions src/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ for (const game of games) {
</body>
</html>
`
fs.mkdirSync(`.dist/${game}`)
fs.mkdirSync(`dist/${game}`)
for (const file of wasm4Files) {
fs.copyFileSync(`templates/wasm4/${file}`, `dist/${game}/${file}`)
}
fs.copyFileSync(`${game}/game.wasm`, `dist/${game}/cart.wasm`)
fs.copyFileSync(`teams/${game}/game.wasm`, `dist/${game}/cart.wasm`)
fs.writeFileSync(`dist/${game}/index.html`, gameIndex)
}

0 comments on commit f88ca79

Please sign in to comment.