From 3ccea209de553d205990b0940be9fc7db09931f2 Mon Sep 17 00:00:00 2001 From: quakj Date: Tue, 25 Nov 2025 11:17:38 +0100 Subject: [PATCH] added github release workflow --- .github/workflows/{go.yaml => build.yaml} | 2 +- .github/workflows/release.yaml | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) rename .github/workflows/{go.yaml => build.yaml} (92%) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/go.yaml b/.github/workflows/build.yaml similarity index 92% rename from .github/workflows/go.yaml rename to .github/workflows/build.yaml index 6f5dc5d..eab3f29 100644 --- a/.github/workflows/go.yaml +++ b/.github/workflows/build.yaml @@ -12,7 +12,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Set up Go uses: actions/setup-go@v5 diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..9516f1c --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,22 @@ +name: Release + +on: + push: + branches: [ "master" ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v5 + + - name: Build + run: go build -o observer . + + - name: Release + uses: softprops/action-gh-release@v2 + if: github.ref_type == 'tag' + with: + files: observer \ No newline at end of file