mirror of
https://github.com/kewlfft/ansible-aur.git
synced 2025-09-17 00:20:38 +03:00
Update galaxy.yml
fix publish
This commit is contained in:
11
.github/workflows/galaxy.yml
vendored
11
.github/workflows/galaxy.yml
vendored
@@ -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 }}"
|
||||||
|
Reference in New Issue
Block a user