Skip to content

Commit

Permalink
Add release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sdclarke committed Aug 8, 2024
1 parent 9e7c5a1 commit 76a6bf6
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: Release role
on:
push:
tags:
- '*'

jobs:
import_role:
name: Import role to Ansible Galaxy
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install Ansible.
run: pip3 install ansible-core
- name: Start import on Ansible Galaxy
run: >
ansible-galaxy role import
--token ${{ secrets.ANSIBLE_GALAXY_API_TOKEN }}
$(echo ${{ github.repository }} | cut -d/ -f1)
$(echo ${{ github.repository }} | cut -d/ -f2)

0 comments on commit 76a6bf6

Please sign in to comment.