Skip to content

Commit c711276

Browse files
add publishing to galaxy (#153)
1 parent 490a86f commit c711276

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/release.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
name: Publish Ansible Role
3+
4+
on:
5+
push:
6+
tags:
7+
- "*"
8+
9+
jobs:
10+
publish:
11+
runs-on: ubuntu-latest
12+
env:
13+
SECRET: ${{ secrets.GALAXY_API_KEY }}
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v4
17+
18+
- name: Set up Python
19+
uses: actions/setup-python@v5
20+
with:
21+
python-version: "3.x"
22+
23+
- name: Install Ansible
24+
run: pip install ansible
25+
26+
- name: Trigger a new import on Galaxy. # geerlingguy
27+
run: >-
28+
ansible-galaxy role import --api-key $SECRET
29+
$(echo ${{ github.repository }} | cut -d/ -f1) $(echo ${{ github.repository }} | cut -d/ -f2)

0 commit comments

Comments
 (0)