Private
Public Access
2
0

Update .gitea/workflows/publish.yml

This commit is contained in:
2026-01-26 16:26:04 +01:00
parent 98506f9803
commit 717aaca7eb

View File

@@ -1,21 +1,23 @@
name: Publish collection to Galagxy
name: Publish collection to Galaxy
on:
push:
branches:
- main
tags:
- 'v*'
jobs:
publish:
runs-on: ubuntu-24.04
steps:
- run: apt install -y pipx
- run: pipx install ansible==12.3.0 --include-deps
- run: pipx inject ansible ansible-lint --include-apps
- run: >
apt install -y pipx yq &&
pipx install ansible==12.3.0 --include-deps &&
pipx inject ansible ansible-lint --include-apps
- uses: actions/checkout@v6
- run: >
cd seb4itik/byow &&
VER=$(yq -r '.version' galaxy.yml) &&
/root/.local/bin/ansible-galaxy collection build &&
/root/.local/bin/ansible-galaxy collection publish seb4itik-byow-0.1.2.tar.gz --api-key ${{ secrets.GALAXY_API_KEY }}
/root/.local/bin/ansible-galaxy collection publish seb4itik-byow-${VER}.tar.gz --api-key ${{ secrets.GALAXY_API_KEY }}
# - uses: actions/gitea-upload-artifact@v3
# with:
# path: /workspace/itik/bgwaf/seb4itik/byow/seb4itik-byow-0.1.2.tar.gz