From 032453fd5919eee74c368b85ddebcd53fbdf25d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Duchaussois?= Date: Thu, 2 Dec 2021 17:54:15 +0100 Subject: CD: publish to ansible galaxy --- .github/workflows/pr.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to '.github') diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 36a66a1..1ec82b9 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -7,6 +7,8 @@ on: pull_request: branches: - master + release: + types: [created, edited, published] jobs: molecule_default: runs-on: ubuntu-latest @@ -40,3 +42,15 @@ jobs: - uses: gofrolist/molecule-action@v2 with: molecule_args: --scenario-name features + publish: + runs-on: ubuntu-latest + needs: + - molecule_default + - molecule_features + if: ${{ github.event_name == 'release' }} + steps: + - uses: actions/checkout@v2 + - name: Upload to ansible-galaxy + uses: robertdebock/galaxy-action@1.1.0 + with: + galaxy_api_key: '${{ secrets.GALAXY_API_KEY }}' -- cgit v1.2.3