Skip to content

Commit

Permalink
Merge pull request #12 from jhoblitt/bugfix/fix-binary-release
Browse files Browse the repository at this point in the history
fix go binary release generation; merge all gha workflows
  • Loading branch information
jhoblitt authored Jun 5, 2023
2 parents db02376 + 3b9843c commit 440f673
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 42 deletions.
34 changes: 33 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: ci
name: Build and Publish

"on":
schedule:
Expand Down Expand Up @@ -63,6 +63,7 @@ jobs:
uses: ludeeus/action-shellcheck@master

oci_image:
name: Build OCI Image
needs: build
if: github.repository == 'jhoblitt/arborist'
runs-on: ubuntu-latest
Expand Down Expand Up @@ -105,3 +106,34 @@ jobs:
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

gh-release:
name: Create GitHub Release
needs: build
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Release
uses: softprops/action-gh-release@v1

go-release:
name: Release Go Binaries
needs: gh-release
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
strategy:
matrix:
goos: [linux, darwin]
goarch: [amd64, arm64]
steps:
- uses: actions/checkout@v3
- uses: wangyoucao577/go-release-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
goversion: "1.19.9"
asset_name: '${{ github.event.repository.name }}-${{ matrix.goos }}-${{ matrix.goarch }}'
17 changes: 0 additions & 17 deletions .github/workflows/gh-release.yaml

This file was deleted.

24 changes: 0 additions & 24 deletions .github/workflows/release.yaml

This file was deleted.

0 comments on commit 440f673

Please sign in to comment.