ansible-collection-nextcloud/.forgejo/workflows/ansible-galaxy.yml
s3lph 245d825a5f
Some checks failed
Ansible Lint / build (push) Has been cancelled
fix: ci
2024-04-14 19:22:40 +02:00

23 lines
505 B
YAML

---
name: Ansible Galaxy
on:
push:
tags:
- 'v*'
jobs:
deploy:
runs-on: ubuntu-latest
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 }}