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 ++++++++++++++ meta/main.yml | 6 ++++++ 2 files changed, 20 insertions(+) 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 }}' diff --git a/meta/main.yml b/meta/main.yml index 4edfb50..d359a3d 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -44,6 +44,12 @@ galaxy_info: versions: - 18.04 - 20.04 + - name: Fedora + versions: + - latest + - name: Centos + versions: + - 8 galaxy_tags: [] # List tags for your role here, one per line. A tag is a keyword that describes -- cgit v1.2.3