From 141e9b089edaf69d10b3d0278e56b6fbf53eb2f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Quatremain?= Date: Wed, 7 Aug 2024 09:02:40 +0200 Subject: [PATCH] GitHub Actions workflow for release --- .github/workflows/release.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..336c08e --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,25 @@ +--- +# This workflow action builds and then publishes the collection +# to Ansible Galaxy. +name: Release + +on: + release: + types: + - published + +jobs: + release: + uses: + redhat-cop/ansible_collections_tooling/.github/workflows/release.yml@main + with: + collection_namespace: infra + collection_name: quay_configuration + collection_version: ${{ github.ref_name }} + collection_repo: https://github.com/redhat-cop/quay_configuration + secrets: + # Ansible Galaxy key that is used to publish the collection + api_key: ${{ secrets.GALAXY_INFRA_KEY }} + # GitHub token used to copy the collection tar to the GitHub release + token: ${{ secrets.GITHUB_TOKEN }} +...