pipeline fix
This commit is contained in:
parent
c998b4a43f
commit
e914886efd
18
.github/workflows/release.yml
vendored
18
.github/workflows/release.yml
vendored
@ -25,12 +25,10 @@ jobs:
|
|||||||
cd wazuh-notify-go
|
cd wazuh-notify-go
|
||||||
go build -v .
|
go build -v .
|
||||||
|
|
||||||
- name: Set variables
|
- name: Set go variables
|
||||||
run: |
|
run: |
|
||||||
GO_VER=$(cat wazuh-notify-python/VERSION)
|
cd wazuh-notify-go && GO_VER=$(cat VERSION)
|
||||||
echo "GO_VERSION=$VER" >> $GITHUB_ENV
|
echo "GO_VERSION=$GO_VER" >> $GITHUB_ENV
|
||||||
GO_VER=$(cat wazuh-notify-go/VERSION)
|
|
||||||
echo "GO_VERSION=$VER" >> $GITHUB_ENV
|
|
||||||
|
|
||||||
- name: Release Go
|
- name: Release Go
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
@ -42,11 +40,19 @@ jobs:
|
|||||||
wazuh-notify-go/wazuh-notify-config.toml
|
wazuh-notify-go/wazuh-notify-config.toml
|
||||||
licence.MD
|
licence.MD
|
||||||
|
|
||||||
|
- name: Set python variables
|
||||||
|
run: |
|
||||||
|
cd wazuh-notify-python && PY_VER=$(cat VERSION)
|
||||||
|
echo "PY_VERSION=$PY_VER" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: zip Python
|
||||||
|
run: zip -r wazuh-notify-python.zip wazuh-notify-python
|
||||||
|
|
||||||
- name: Release python
|
- name: Release python
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.RELEASE_TOKEN }}
|
token: ${{ secrets.RELEASE_TOKEN }}
|
||||||
tag_name: Python-v${{ env.PYTHON_VERSION }}
|
tag_name: Python-v${{ env.PYTHON_VERSION }}
|
||||||
files: |
|
files: |
|
||||||
wazuh-notify-python
|
wazuh-notify-python.zip
|
||||||
licence.MD
|
licence.MD
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user