From bc18d1ae20fe52f455075e0e6f4bae8861794168 Mon Sep 17 00:00:00 2001 From: Joerg Kastning Date: Tue, 19 Dec 2023 13:32:57 +0100 Subject: [PATCH] Create workflow to push to ansible-galaxy Signed-off-by: Joerg Kastning --- .github/workflows/ansible-galaxy.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/ansible-galaxy.yml diff --git a/.github/workflows/ansible-galaxy.yml b/.github/workflows/ansible-galaxy.yml new file mode 100644 index 0000000..23962a1 --- /dev/null +++ b/.github/workflows/ansible-galaxy.yml @@ -0,0 +1,21 @@ +--- +name: 'Publish latest release to Ansible Galaxy' + +on: + push: + branches: + - 'main' + workflow_dispatch: {} + +jobs: + build: + name: 'Publish to Ansible Galaxy' + runs-on: 'ubuntu-latest' + steps: + - name: 'checkout' + uses: 'actions/checkout@v2' + - name: 'galaxy' + uses: 'robertdebock/galaxy-action@1.2.0' + with: + galaxy_api_key: '${{ secrets.galaxy_api_key }}' + git_branch: 'main'