diff options
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/pr.yml | 14 |
1 files changed, 14 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] | ||
10 | jobs: | 12 | jobs: |
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 }}' | ||