From e8aa8208e08f7055d60ef249bfc4cebe69795525 Mon Sep 17 00:00:00 2001 From: Lucas Menendez Date: Sun, 7 Apr 2024 06:58:32 +0200 Subject: [PATCH] updating action --- .github/workflows/release.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2abeb73..5ad2070 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 @@ -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 \ No newline at end of file