Skip to content

Commit

Permalink
Merge pull request #5 from fretlink/publish_on_galaxy
Browse files Browse the repository at this point in the history
CD: publish to ansible galaxy
  • Loading branch information
gaetanfl authored Dec 3, 2021
2 parents 51a5caa + 032453f commit d1aff14
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
pull_request:
branches:
- master
release:
types: [created, edited, published]
jobs:
molecule_default:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -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/[email protected]
with:
galaxy_api_key: '${{ secrets.GALAXY_API_KEY }}'
6 changes: 6 additions & 0 deletions meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d1aff14

Please sign in to comment.