fix: galaxy publish pipeline
This commit is contained in:
parent
81576dc751
commit
0ca32d87dd
2 changed files with 9 additions and 4 deletions
|
@ -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
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
s3lph-nextcloud*.tar.gz
|
Loading…
Reference in a new issue