Skip to content

Commit 8a103db

Browse files
shoriminimoejustinc1
authored andcommitted
ci: use ansible/ansible-content-actions for publish job
closes: #335
1 parent eeca326 commit 8a103db

File tree

1 file changed

+7
-23
lines changed

1 file changed

+7
-23
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -52,30 +52,14 @@ jobs:
5252
fail_on_unmatched_files: true
5353
generate_release_notes: true
5454

55-
publish-to-galaxy:
55+
publish:
5656
needs: release
57-
runs-on: ubuntu-latest
58-
steps:
59-
- uses: actions/checkout@v4
60-
- name: Publish to Ansible Galaxy 🌌
61-
uses: ansible/ansible-publish-action@v1.0.0
62-
with:
63-
api_key: ${{ secrets.GALAXY_API_KEY }}
64-
65-
publish-to-automation-platform:
66-
needs: release
67-
runs-on: ubuntu-latest
68-
steps:
69-
- uses: actions/checkout@v4
70-
- name: Publish to Ansible Automation Platform 🌌
71-
uses: ansible/ansible-publish-action@v1.0.0
72-
env:
73-
ANSIBLE_GALAXY_SERVER_AUTOMATION_HUB_URL: https://console.redhat.com/api/automation-hub/
74-
ANSIBLE_GALAXY_SERVER_AUTOMATION_HUB_AUTH_URL: https://sso.redhat.com/auth/realms/redhat-external/protocol/openid-connect/token
75-
ANSIBLE_GALAXY_SERVER_AUTOMATION_HUB_TOKEN: ${{ secrets.AUTOMATION_HUB_API_KEY }}
76-
with:
77-
api_key: ${{ secrets.AUTOMATION_HUB_API_KEY }}
78-
api_server: automation_hub
57+
uses: ansible/ansible-content-actions/.github/workflows/release.yaml@main
58+
with:
59+
environment: release
60+
secrets:
61+
ah_token: ${{ secrets.AUTOMATION_HUB_API_KEY }}
62+
ansible_galaxy_api_key: ${{ secrets.GALAXY_API_KEY }}
7963

8064
publish-docs:
8165
needs: release

0 commit comments

Comments
 (0)