Skip to content

Commit f3ebe8c

Browse files
authored
Merge pull request #6 from stackhpc/publish
CI: add job to publish collection on galaxy
2 parents a161c89 + 4c11ede commit f3ebe8c

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/publish.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
name: Publish
3+
4+
# Controls when the action will run.
5+
on:
6+
push:
7+
tags:
8+
- "v[0-9]+.[0-9]+.[0-9]+"
9+
workflow_dispatch:
10+
11+
jobs:
12+
galaxy:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
# Checks-out the repository under $GITHUB_WORKSPACE, so it's accessible to the job
17+
- uses: actions/checkout@v2
18+
19+
- name: Build and publish a collection
20+
uses: artis3n/ansible_galaxy_collection@v2
21+
with:
22+
api_key: '${{ secrets.GALAXY_API_KEY }}'

0 commit comments

Comments
 (0)