Skip to content

Commit

Permalink
Create build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
HACKERALERT authored Oct 6, 2024
1 parent e41d33b commit 9bb9a62
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: build

permissions:
contents: write

on:
push:
paths:
- "VERSION"
branches:
- main
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4

- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '>1.22'
check-latest: true
cache: false

- name: Install dependencies
run: |
go mod download
- name: Build
run: |
GOOS=js GOARCH=wasm go build -ldflags="-s -w" -o main.wasm index.go
env:
CGO_ENABLED: 0

- name: Release
uses: softprops/action-gh-release@v2
with:
files: |
main.wasm
tag_name: latest
make_latest: true

0 comments on commit 9bb9a62

Please sign in to comment.