Skip to content

Commit

Permalink
Merge pull request #57 from replicase/chore/auto-build-binary-after-r…
Browse files Browse the repository at this point in the history
…eleased

chore: auto build go binary after released
  • Loading branch information
rueian authored Feb 14, 2024
2 parents eff18d5 + b8a51f9 commit fd95c8b
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/go-binary-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Go Binary Release

on:
push:
tags:
- "v*.*.*"

permissions:
contents: write

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build
run: ./dockerbuild.sh build && sudo mv ./bin/out/pgcapture ./bin/out/pgcapture-linux-amd64
- name: Release
uses: softprops/action-gh-release@v1
with:
files: ./bin/out/pgcapture-linux-amd64
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit fd95c8b

Please sign in to comment.