From 0ca32d87dd237701ce9b265ed949d3041af240c5 Mon Sep 17 00:00:00 2001 From: s3lph Date: Sun, 14 Apr 2024 20:15:43 +0200 Subject: [PATCH] fix: galaxy publish pipeline --- .forgejo/workflows/ansible-galaxy.yml | 12 ++++++++---- .gitignore | 1 + 2 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 .gitignore diff --git a/.forgejo/workflows/ansible-galaxy.yml b/.forgejo/workflows/ansible-galaxy.yml index ffcfb22..d5b5efc 100644 --- a/.forgejo/workflows/ansible-galaxy.yml +++ b/.forgejo/workflows/ansible-galaxy.yml @@ -18,8 +18,12 @@ jobs: run: | VERSION=${GITHUB_REF#refs/tags/v} sed -re "s/^version:.*$/version: ${VERSION}/" -i galaxy.yml - - name: Upload collection to Ansible Galaxy - uses: https://github.com/ansible/ansible-publish-action@v1.0.0 - with: - api_key: ${{ secrets.GALAXY_API_KEY }} + - name: Upload collection to Ansible Galaxy + env: + GALAXY_API_KEY: ${{ secrets.GALAXY_API_KEY }} + run: | + apt update; apt install --yes python3-pip + pip3 install --break-system-packages ansible + ansible-galaxy collection build + ansible-galaxy collection publish --api-key=${GALAXY_API_KEY} s3lph-nextcloud*tar.gz diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3f47e11 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +s3lph-nextcloud*.tar.gz \ No newline at end of file