Skip to content

Commit

Permalink
update: fixed wasm-pack.yml action workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
f-aguzzi authored Feb 23, 2024
1 parent 773dead commit 4653a2f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/wasm-pack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
push:
paths:
- 'lib/src/lib.rs'
- '.github/workflows/wasm-pack.yml'

jobs:
build:
Expand All @@ -17,11 +18,12 @@ jobs:
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
wasm-pack build lib/ --release --target web
- name: Copy necessary files
- name: Copy necessary files and stage them
run: |
cp lib/pkg/editpix_wasm_bg.wasm src/core/editpix_wasm_bg.wasm
cp lib/pkg/editpix_wasm.js src/core/editpix_wasm.js
rm -r lib/pkg
git add *
- name: Check for changes
id: check_changes
Expand All @@ -39,9 +41,8 @@ jobs:
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add *
git commit -m "CI push"
- name: Push changes
if: steps.check_changes.outputs.changes == 'true'
uses: ad-m/github-push-action@master
uses: ad-m/github-push-action@master

0 comments on commit 4653a2f

Please sign in to comment.