Skip to content

Commit 8952465

Browse files
committed
Ensure galaxy publishing before pushing to GitHub
1 parent 48b3a3c commit 8952465

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,13 @@ jobs:
4949
branch: main
5050
unprotect_reviews: true
5151

52+
- name: Publish Collection on Ansible Galaxy
53+
uses: artis3n/ansible_galaxy_collection@v2
54+
with:
55+
api_key: '${{ secrets.GALAXY_API_KEY }}'
56+
build: false
57+
publish: true
58+
5259
- name: Push changes to repository
5360
run: git push origin && git push --tags
5461

@@ -59,13 +66,6 @@ jobs:
5966
body: ${{ steps.release-changelog.outputs.content }}
6067
token: ${{ secrets.RELEASE_BOT_GITHUB_TOKEN }}
6168

62-
- name: Publish Collection on Ansible Galaxy
63-
uses: artis3n/ansible_galaxy_collection@v2
64-
with:
65-
api_key: '${{ secrets.GALAXY_API_KEY }}'
66-
build: false
67-
publish: true
68-
6969
clean_changelog:
7070
if: github.event.pull_request.merged == true && needs.changelog.outputs.release-type == 'no-release'
7171
needs: [ changelog ]

0 commit comments

Comments
 (0)