This commit is contained in:
Syed Daanish
2025-02-09 15:45:42 +03:00
parent 2fb189efc7
commit 1d81a67e00
6 changed files with 66 additions and 21 deletions

19
.github/workflows/go.yml vendored Normal file
View File

@@ -0,0 +1,19 @@
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@v4
with:
go-version: '1.23'
- name: Build
run: go build -v ./...

21
.github/workflows/release.yml vendored Normal file
View File

@@ -0,0 +1,21 @@
name: Build and Release Go Binary
on:
release:
types: [created]
permissions:
contents: write
packages: write
jobs:
release-linux-amd64:
name: release linux/amd64
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: wangyoucao577/go-release-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: linux
goarch: amd64