Update galaxy.yml

fix publish
This commit is contained in:
kewl
2025-08-22 20:44:24 +01:00
committed by GitHub
parent d2f3fb5802
commit 0d4d6aa3e7

View File

@@ -1,9 +1,8 @@
---
name: Build and Publish Collection to Ansible Galaxy name: Build and Publish Collection to Ansible Galaxy
'on': on:
release: release:
types: [ published ] types: [published]
workflow_dispatch: workflow_dispatch:
defaults: defaults:
@@ -14,7 +13,7 @@ jobs:
release: release:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout git repo - name: Checkout repo
uses: actions/checkout@v5 uses: actions/checkout@v5
with: with:
path: collections/ansible_collections/kewlfft/aur path: collections/ansible_collections/kewlfft/aur
@@ -36,5 +35,7 @@ jobs:
run: ansible-galaxy collection build run: ansible-galaxy collection build
- name: Publish collection - name: Publish collection
run: ansible-galaxy collection publish "kewlfft-aur-${{ steps.version.outputs.version }}.tar.gz" \ run: |
tarball="kewlfft-aur-${{ steps.version.outputs.version }}.tar.gz"
ansible-galaxy collection publish "$tarball" \
--api-key "${{ secrets.ANSIBLE_GALAXY_API_KEY }}" --api-key "${{ secrets.ANSIBLE_GALAXY_API_KEY }}"