fix: galaxy publish pipeline
Some checks failed
Ansible Lint / build (push) Successful in 1m9s
Ansible Galaxy / deploy (push) Failing after 2m12s

This commit is contained in:
s3lph 2024-04-14 20:15:43 +02:00
parent 81576dc751
commit 0ca32d87dd
Signed by: s3lph
GPG key ID: 0AA29A52FB33CFB5
2 changed files with 9 additions and 4 deletions

View file

@ -18,8 +18,12 @@ jobs:
run: | run: |
VERSION=${GITHUB_REF#refs/tags/v} VERSION=${GITHUB_REF#refs/tags/v}
sed -re "s/^version:.*$/version: ${VERSION}/" -i galaxy.yml 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 - name: Upload collection to Ansible Galaxy
with: env:
api_key: ${{ secrets.GALAXY_API_KEY }} 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

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
s3lph-nextcloud*.tar.gz