aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/pr.yml14
-rw-r--r--meta/main.yml6
2 files changed, 20 insertions, 0 deletions
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:
7 pull_request: 7 pull_request:
8 branches: 8 branches:
9 - master 9 - master
10 release:
11 types: [created, edited, published]
10jobs: 12jobs:
11 molecule_default: 13 molecule_default:
12 runs-on: ubuntu-latest 14 runs-on: ubuntu-latest
@@ -40,3 +42,15 @@ jobs:
40 - uses: gofrolist/molecule-action@v2 42 - uses: gofrolist/molecule-action@v2
41 with: 43 with:
42 molecule_args: --scenario-name features 44 molecule_args: --scenario-name features
45 publish:
46 runs-on: ubuntu-latest
47 needs:
48 - molecule_default
49 - molecule_features
50 if: ${{ github.event_name == 'release' }}
51 steps:
52 - uses: actions/checkout@v2
53 - name: Upload to ansible-galaxy
54 uses: robertdebock/galaxy-action@1.1.0
55 with:
56 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:
44 versions: 44 versions:
45 - 18.04 45 - 18.04
46 - 20.04 46 - 20.04
47 - name: Fedora
48 versions:
49 - latest
50 - name: Centos
51 versions:
52 - 8
47 53
48 galaxy_tags: [] 54 galaxy_tags: []
49 # List tags for your role here, one per line. A tag is a keyword that describes 55 # List tags for your role here, one per line. A tag is a keyword that describes