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