Added versioning and python release.yml
This commit is contained in:
parent
ac5d2babbd
commit
6c68447ef4
@ -18,18 +18,35 @@ jobs:
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: '1.22'
|
||||
go-version: '1.23'
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
cd wazuh-notify-go
|
||||
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
|
||||
with:
|
||||
token: ${{ secrets.RELEASE_TOKEN }}
|
||||
tag_name: Golang-vx.x.x
|
||||
tag_name: Golang-v${{ evn.GO_VERSION }}
|
||||
files: |
|
||||
wazuh-notify-go/wazuh-notify
|
||||
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
1
wazuh-notify-go/VERSION
Normal file
@ -0,0 +1 @@
|
||||
0.1.1-Release
|
||||
1
wazuh-notify-python/VERSION
Normal file
1
wazuh-notify-python/VERSION
Normal file
@ -0,0 +1 @@
|
||||
0.1.0-Release
|
||||
Loading…
x
Reference in New Issue
Block a user