Skip to content

Commit

Permalink
updating action
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmenendez committed Apr 7, 2024
1 parent c248275 commit e8aa820
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
contents: write
pages: write
id-token: write

Expand All @@ -36,15 +36,14 @@ jobs:
uses: actions/configure-pages@v5
- name: Build wasm
run: |
go build -o ${{ steps.pages.outputs.base_path }}/gosss.wasm ./cmd/webassembly/main.go
go build -o ./web/gosss.wasm ./cmd/webassembly/main.go
- name: Copy go wasm js engine
run: |
cp "$(go env GOROOT)/misc/wasm/wasm_exec.js" ${{ steps.pages.outputs.base_path }}
cp -r ./web ${{ steps.pages.outputs.base_path }}
cp "$(go env GOROOT)/misc/wasm/wasm_exec.js" ./web/
- name: Upload to Pages
uses: actions/upload-pages-artifact@v3
with:
path: ${{ steps.pages.outputs.base_path }}
path: ./web
- name: Deploy to Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit e8aa820

Please sign in to comment.