Skip to content

Commit 8b84fb1

Browse files
authored
automatically publish to Ansible Galaxy (#9)
* add workflow * bump version
1 parent cc238de commit 8b84fb1

3 files changed

Lines changed: 42 additions & 1 deletion

File tree

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
name: Ansible Galaxy release
3+
"on":
4+
workflow_call:
5+
inputs:
6+
environment:
7+
description: The deployment environment
8+
required: true
9+
type: string
10+
galaxy_publish:
11+
default: true
12+
description: Publish the collection on galaxy
13+
type: boolean
14+
secrets:
15+
ansible_galaxy_api_key:
16+
required: true
17+
jobs:
18+
release:
19+
runs-on: ubuntu-latest
20+
name: Galaxy release
21+
environment: "${{ inputs.environment }}"
22+
steps:
23+
- uses: actions/checkout@v6
24+
- name: Build the collection
25+
run: |
26+
ansible-galaxy collection build -v --force
27+
- name: Publish the collection on Galaxy
28+
if: "${{ inputs.galaxy_publish }}"
29+
run: >
30+
[[ "${{ secrets.ansible_galaxy_api_key != '' }}" ]] || { echo
31+
"ansible_galaxy_api_key is required to publish on galaxy" ; exit 1; }
32+
33+
TARBALL=$(ls -1 ./*.tar.gz)
34+
35+
ansible-galaxy collection publish "${TARBALL}" --api-key "${{
36+
secrets.ansible_galaxy_api_key }}"

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## 0.5.0 (25.06.2026)
4+
5+
- first public version after Uyuni project rebranding
6+
- [GHA] automatically create docs and releases
7+
38
## 0.4.5 (10.06.2026)
49

510
- [proxy, server] added support for Debian 13, Ubuntu 24.04 and EL9 (issue #65)

galaxy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
namespace: uyuni_project
33
name: uyuni
4-
version: 0.4.5
4+
version: 0.5.0
55
readme: README.md
66
authors:
77
- Christian Stankowic <info@cstan.io>

0 commit comments

Comments
 (0)