From ab530e13b37b165b077836ae0e3497b24aa73543 Mon Sep 17 00:00:00 2001 From: Sam Caldwell Date: Tue, 3 Sep 2024 13:30:36 -0700 Subject: [PATCH] ci: use ansible/ansible-content-actions for publish job closes: #335 --- .github/workflows/release.yml | 30 +++++++----------------------- 1 file changed, 7 insertions(+), 23 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 357ef305..9f0e2ca5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -52,30 +52,14 @@ jobs: fail_on_unmatched_files: true generate_release_notes: true - publish-to-galaxy: + publish: needs: release - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Publish to Ansible Galaxy 🌌 - uses: ansible/ansible-publish-action@v1.0.0 - with: - api_key: ${{ secrets.GALAXY_API_KEY }} - - publish-to-automation-platform: - needs: release - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Publish to Ansible Automation Platform 🌌 - uses: ansible/ansible-publish-action@v1.0.0 - env: - ANSIBLE_GALAXY_SERVER_AUTOMATION_HUB_URL: https://console.redhat.com/api/automation-hub/ - ANSIBLE_GALAXY_SERVER_AUTOMATION_HUB_AUTH_URL: https://sso.redhat.com/auth/realms/redhat-external/protocol/openid-connect/token - ANSIBLE_GALAXY_SERVER_AUTOMATION_HUB_TOKEN: ${{ secrets.AUTOMATION_HUB_API_KEY }} - with: - api_key: ${{ secrets.AUTOMATION_HUB_API_KEY }} - api_server: automation_hub + uses: ansible/ansible-content-actions/.github/workflows/release.yaml@main + with: + environment: release + secrets: + ah_token: ${{ secrets.AUTOMATION_HUB_API_KEY }} + ansible_galaxy_api_key: ${{ secrets.GALAXY_API_KEY }} publish-docs: needs: release