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 6e90db9
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 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,13 @@ jobs:
run: cd mods/galangua-common && cargo test

- name: Build .wasm
run: make
run: |
make
cd www && npm ci && npm run deploy
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 +45,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@main
uses: actions/deploy-pages@v2

0 comments on commit 6e90db9

Please sign in to comment.