Skip to content

Commit

Permalink
updating release (#111)
Browse files Browse the repository at this point in the history
* updating release workflow

* trying to add console.redhat.com to publish colleciton too
  • Loading branch information
djdanielsson authored Jul 31, 2023
1 parent fa8dd58 commit 8570c39
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,19 @@ jobs:
- name: Publish to galaxy
run: ansible-galaxy collection publish --api-key=${{ secrets.GALAXY_INFRA_KEY }} ${{ steps.build.outputs.tar_file }}

- name: Publish to Automation Hub
run: |
cat << EOF > ansible.cfg
[galaxy]
server_list = rh_automation_hub
[galaxy_server.rh_automation_hub]
url=https://cloud.redhat.com/api/automation-hub/
auth_url=https://sso.redhat.com/auth/realms/redhat-external/protocol/openid-connect/token
token=${{ secrets.CONSOLE_API_KEY }}
EOF
ansible-galaxy collection publish ${{ steps.build.outputs.tar_file }}
rm ansible.cfg
- name: Upload files to tag
uses: svenstaro/upload-release-action@v2
with:
Expand Down

0 comments on commit 8570c39

Please sign in to comment.