Skip to content

Bump actions/upload-artifact from 4.4.0 to 4.4.3 (#71) #52

Bump actions/upload-artifact from 4.4.0 to 4.4.3 (#71)

Bump actions/upload-artifact from 4.4.0 to 4.4.3 (#71) #52

Workflow file for this run

name: Build and Deploy Pages
on:
push:
branches: ["master"]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go 1.x
uses: actions/setup-go@v5
with:
go-version: ^1.12
- name: Get dependencies
run: go get -v -t -d ./...
- name: Build
env:
GTAG: ${{ vars.GTAG }}
run: |
envsubst < web/index.html > out && mv out web/index.html
cd web
cp "$(go env GOROOT)/misc/wasm/wasm_exec.js" .
cp -r ../testdata .
GOARCH=wasm GOOS=js go build -ldflags="-s -w" -o main.wasm main.go
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: "./web"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4