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