Skip to content

Add github actions for doing build #1

Add github actions for doing build

Add github actions for doing build #1

Workflow file for this run

# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Go
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22.3'
- name: Install dependencies
run: |
go get .
- name: Build
run: |
go build -v ./...
sh ./wasm.sh
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload build
path: './wasm'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4