Skip to content

Commit fc8b715

Browse files
committed
Add release action
Signed-off-by: Colin Wilk <[email protected]>
1 parent c1f1f20 commit fc8b715

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/release.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
name: Release
3+
4+
'on':
5+
push:
6+
tags:
7+
- '*'
8+
9+
defaults:
10+
run:
11+
working-directory: kliwniloc.borgbackup
12+
jobs:
13+
14+
release:
15+
name: Release
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Check out the codebase.
19+
uses: actions/checkout@v2
20+
with:
21+
path: kliwniloc.borgbackup
22+
23+
- name: Set up Python 3.
24+
uses: actions/setup-python@v2
25+
with:
26+
python-version: 3.x
27+
28+
- name: Install Ansible.
29+
run: pip3 install ansible-core
30+
31+
- name: Trigger a new import on Galaxy.
32+
run: >-
33+
ansible-galaxy role import --api-key ${{ secrets.GALAXY_API_KEY }}
34+
$(echo ${{ github.repository }} | cut -d/ -f1) $(echo ${{ github.repository }} | cut -d/ -f2)

0 commit comments

Comments
 (0)