From 352dffcf5422e3c46a35eb02d2fac5054b2ba03a Mon Sep 17 00:00:00 2001 From: Jehiah Czebotar Date: Tue, 13 Feb 2024 22:49:12 -0500 Subject: [PATCH] github action for building release builds --- .github/workflows/release.yaml | 24 ++++++++++++++++++++++++ .github/workflows/test.yaml | 2 +- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..6be271d --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,24 @@ +on: + release: + types: [created] + +permissions: + contents: write + packages: write + +jobs: + release-go-binary: + name: release Go Binary + runs-on: ubuntu-latest + strategy: + matrix: + goos: [linux] + goarch: [amd64] + steps: + - uses: actions/checkout@v4 + - uses: wangyoucao577/go-release-action@v1 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + goos: ${{ matrix.goos }} + goarch: ${{ matrix.goarch }} + goversion: 1.21 diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 52323ea..46792aa 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -6,7 +6,7 @@ on: jobs: test: - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest timeout-minutes: 20 strategy: fail-fast: false