Merge pull request #31 from darkwizard242/feature/add-support-for-ubu… #31
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: release | |
on: | |
push: | |
tags: | |
- '*' | |
env: | |
CUSTOM_DIR: 'darkwizard242.flux' | |
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/.*\///') |