-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (28 loc) · 864 Bytes
/
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
name: release
on:
push:
tags:
- '*'
env:
CUSTOM_DIR: 'darkwizard242.lazydocker'
jobs:
release:
name: Release
runs-on: ubuntu-22.04
steps:
- name: Checkout source code
uses: actions/checkout@v4
with:
path: '${{ env.CUSTOM_DIR }}'
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Update repo cache, install python3-setuptools and required pip modules
run: |
sudo apt-get update
sudo apt-get install python3-setuptools -y
pip3 install -U pip wheel ansible
- name: Import to Ansible Galaxy.
working-directory: '${{ env.CUSTOM_DIR }}'
run: ansible-galaxy role import --api-key ${{ secrets.GALAXY_API_KEY }} ${{ github.repository_owner }} $(echo ${{ github.repository }} | sed 's/.*\///')