ansible-collection-nextcloud/.forgejo/workflows/ansible-galaxy.yml
s3lph 81576dc751
Some checks failed
Ansible Lint / build (push) Successful in 1m7s
Ansible Galaxy / deploy (push) Failing after 1m47s
fix: ansible-lint
2024-04-14 19:56:19 +02:00

25 lines
521 B
YAML

---
name: Ansible Galaxy
on: # noqa yaml[truthy]
push:
tags:
- 'v*'
jobs:
deploy:
runs-on: docker
steps:
- uses: actions/checkout@v4
- name: Set version in galaxy.yml
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 }}