mirror of
https://github.com/kewlfft/ansible-aur.git
synced 2025-09-17 00:20:38 +03:00
Update galaxy.yml
fix path
This commit is contained in:
12
.github/workflows/galaxy.yml
vendored
12
.github/workflows/galaxy.yml
vendored
@@ -32,17 +32,19 @@ jobs:
|
|||||||
echo "version=$tag_version" >> "$GITHUB_OUTPUT"
|
echo "version=$tag_version" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- name: Build collection
|
- name: Build collection
|
||||||
run: ansible-galaxy collection build
|
id: build
|
||||||
|
run: |
|
||||||
|
path=$(ansible-galaxy collection build | awk '/Created collection/ {print $NF}')
|
||||||
|
echo "tarball=$path" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- name: Upload built collection artifact
|
- name: Upload built collection artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ansible-collection-tarball
|
name: ansible-collection-tarball
|
||||||
path: kewlfft-aur-*.tar.gz
|
path: ${{ steps.build.outputs.tarball }}
|
||||||
|
|
||||||
- name: Publish collection
|
- name: Publish collection
|
||||||
run: |
|
run: |
|
||||||
tarball=$(realpath kewlfft-aur-*.tar.gz)
|
echo "📦 Publishing ${{ steps.build.outputs.tarball }} ..."
|
||||||
echo "📦 Publishing $tarball ..."
|
ansible-galaxy collection publish "${{ steps.build.outputs.tarball }}" \
|
||||||
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