Skip to content

Commit

Permalink
fix: revert action
Browse files Browse the repository at this point in the history
  • Loading branch information
shawn-bluce committed Jul 3, 2024
1 parent abfe28c commit a454ad3
Showing 1 changed file with 17 additions and 24 deletions.
41 changes: 17 additions & 24 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,28 @@
# 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: Release Build
name: Go

on:
release:
types: [created]
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
releases-matrix:
name: Release Go Binary

build:
runs-on: ubuntu-latest
strategy:
matrix:
goos: [linux, windows, darwin]
goarch: [amd64, arm64]
exclude:
- goarch: arm64
goos: windows
steps:
- uses: actions/checkout@v3

- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
- uses: actions/checkout@v4

- uses: wangyoucao577/go-release-action@v1
- name: Set up Go
uses: actions/setup-go@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
goversion: "https://dl.google.com/go/go1.20.linux-amd64.tar.gz"
release_tag: release
extra_files: LICENSE README.md
go-version: '1.20'

- name: Build
run: go build -v ./...

- name: Test
run: go test -v ./...

0 comments on commit a454ad3

Please sign in to comment.