Skip to content

Commit

Permalink
feat: release jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
mdshack committed Sep 23, 2023
1 parent e06cbe0 commit ba42a66
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/release-please.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,21 @@ jobs:
- uses: google-github-actions/release-please-action@v3
with:
release-type: go
package-name: mdshack/dbanon
package-name: mdshack/dbanon

# Release the latest binary
- name: Checkout
if: ${{ steps.release.outputs.release_created }}
uses: actions/checkout@v3
with:
ref: '${{ steps.release.outputs.tag_name }}'
- uses: actions/setup-go@v4
if: ${{ steps.release.outputs.release_created }}
- name: Build binary
if: ${{ steps.release.outputs.release_created }}
run: go build -mod vendor -o dbanon
- name: Release
if: ${{ steps.release.outputs.release_created }}
run: gh release upload ${{ steps.release.outputs.tag_name }} dbanon
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit ba42a66

Please sign in to comment.