Added versioning and python release.yml

This commit is contained in:
dklein 2024-11-29 12:15:31 +01:00
parent ac5d2babbd
commit 6c68447ef4
3 changed files with 22 additions and 3 deletions

View File

@ -18,18 +18,35 @@ jobs:
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v4 uses: actions/setup-go@v4
with: with:
go-version: '1.22' go-version: '1.23'
- name: Build - name: Build
run: | run: |
cd wazuh-notify-go cd wazuh-notify-go
go build -v . go build -v .
- name: Release - name: Set variables
run: |
GO_VER=$(cat wazuh-notify-python/VERSION)
echo "GO_VERSION=$VER" >> $GITHUB_ENV
GO_VER=$(cat wazuh-notify-go/VERSION)
echo "GO_VERSION=$VER" >> $GITHUB_ENV
- name: Release Go
uses: softprops/action-gh-release@v2 uses: softprops/action-gh-release@v2
with: with:
token: ${{ secrets.RELEASE_TOKEN }} token: ${{ secrets.RELEASE_TOKEN }}
tag_name: Golang-vx.x.x tag_name: Golang-v${{ evn.GO_VERSION }}
files: | files: |
wazuh-notify-go/wazuh-notify wazuh-notify-go/wazuh-notify
wazuh-notify-go/wazuh-notify-config.toml wazuh-notify-go/wazuh-notify-config.toml
licence.MD
- name: Release python
uses: softprops/action-gh-release@v2
with:
token: ${{ secrets.RELEASE_TOKEN }}
tag_name: Python-v${{ evn.PYTHON_VERSION }}
files: |
wazuh-notify-python
licence.MD

1
wazuh-notify-go/VERSION Normal file
View File

@ -0,0 +1 @@
0.1.1-Release

View File

@ -0,0 +1 @@
0.1.0-Release