Private
Public Access
2
0
Files
bgwaf/.gitea/workflows/publish.yml
Sébastien NAMECHE 15fc072b76
Some checks failed
Publish collection to Galaxy / publish (push) Has been cancelled
Update .gitea/workflows/publish.yml
2026-04-08 08:54:01 +02:00

34 lines
1.2 KiB
YAML

name: Publish collection to Galaxy
on:
push:
tags:
- "v*"
branches:
- "main"
jobs:
publish:
runs-on: ubuntu-24.04
steps:
- run: apt install -y pipx
- run: pipx install ansible==12.3.0 --include-deps
- run: pipx install yq
- 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-${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
# - name: Push artifacts
# run: |
# GITEA_REPO_OWNER=$(echo $GITEA_REPOSITORY | cut -d"/" -f1) && \
# GITEA_REPO_NAME=$(echo $GITEA_REPOSITORY | cut -d"/" -f2) && \
# curl \
# -X PUT \
# -H "Authorization: token ${{ secrets.CI_GITEA_PACKAGES_TOKEN }}" \
# --upload-file seb4itik-byow-${VER}.tar.gz \
# $GITEA_SERVER_URL/api/packages/${GITEA_REPO_OWNER}/generic/${GITEA_REPO_NAME}/${GITEA_SHA}/seb4itik-byow-${VER}.tar.gz