From 3bb465344092367a7e46776823ac3af9bcf68482 Mon Sep 17 00:00:00 2001 From: DariusKlein <54933874+DariusKlein@users.noreply.github.com> Date: Mon, 10 Jun 2024 15:06:42 +0200 Subject: [PATCH] Create golang.yml --- .github/workflows/golang.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/golang.yml diff --git a/.github/workflows/golang.yml b/.github/workflows/golang.yml new file mode 100644 index 0000000..eb26491 --- /dev/null +++ b/.github/workflows/golang.yml @@ -0,0 +1,33 @@ +# This workflow will build a golang project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go + +name: Go + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.22' + + - name: Build + run: go build -v ./wazuh-notify-go + + - name: Release + uses: softprops/action-gh-release@v2 + with: + files: | + wazuh-notify-go/wazuh-notify + +