Skip to content

Commit

Permalink
Fix deploying on Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
tyfkda committed Jan 11, 2024
1 parent bb55199 commit 7ac4024
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '16.x'
node-version: '18.x'

- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
Expand All @@ -23,15 +23,18 @@ jobs:
run: cd mods/galangua-common && cargo test

- name: Build .wasm
run: make
run: |
wasm-pack --version
make
ls -l pkg
working-directory: ./galangua-wasm

- name: Build WebApp
run: npm ci && npm run deploy
working-directory: ./galangua-wasm/www

- name: Upload artifact
uses: actions/upload-pages-artifact@v1
uses: actions/upload-pages-artifact@v2
with:
path: ./galangua-wasm/www/dist

Expand All @@ -47,4 +50,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@main
uses: actions/deploy-pages@v2

0 comments on commit 7ac4024

Please sign in to comment.