23 lines
498 B
YAML
23 lines
498 B
YAML
---
|
|
|
|
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
|
|
uses: https://github.com/ansible/ansible-publish-action@v1.0.0
|
|
with:
|
|
api_key: ${{ secrets.GALAXY_API_KEY }}
|