-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (43 loc) · 1.12 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: "Release"
on:
push:
branches:
- main
jobs:
run-tests:
name: "Run tests"
uses: ./.github/workflows/tests.yml
secrets: inherit
release:
needs: run-tests
name: "Release"
runs-on: ubuntu-20.04
permissions: write-all
env:
GITHUB_TOKEN: ${{ github.token }}
steps:
- uses: actions/checkout@v3
- name: Release
uses: cycjimmy/semantic-release-action@v3
with:
semantic_version: 18.0.0
extra_plugins: |
@semantic-release/[email protected]
@semantic-release/[email protected]
release-galaxy:
needs: release
name: "Release to Galaxy"
runs-on: ubuntu-20.04
steps:
- uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install Ansible
run: |
pip3 install ansible-core
- name: Trigger import to Galaxy
run: |
ansible-galaxy role import \
--api-key ${{ secrets.ANSIBLE_GALAXY_API_KEY }} \
$(echo ${{ github.repository }} | sed 's/\// /')