ansible-collection-nextcloud/.forgejo/workflows/ansible-galaxy.yml

24 lines
498 B
YAML
Raw Normal View History

---
name: Ansible Galaxy
on:
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
2024-04-14 19:17:48 +02:00
uses: https://github.com/ansible/ansible-publish-action@v1.0.0
with:
api_key: ${{ secrets.GALAXY_API_KEY }}