Skip to content

Merge pull request #2 from adfinis/playbooks #5

Merge pull request #2 from adfinis/playbooks

Merge pull request #2 from adfinis/playbooks #5

Workflow file for this run

---
name: Build and deploy Collection on 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: ansible/[email protected]
with:
api_key: ${{ secrets.GALAXY_API_KEY }}