ansible-role-nginx/.github/workflows/galaxy.yml

25 lines
677 B
YAML
Raw Normal View History

---
name: Ansible Galaxy import
"on":
release:
2021-01-20 18:52:28 +01:00
types:
- published
jobs:
galaxy:
name: Galaxy
runs-on: ubuntu-20.04
steps:
- name: Check out the codebase
uses: actions/checkout@v2.3.4
- name: Set up Python 3
uses: actions/setup-python@v2.2.2
with:
python-version: 3.x
- name: Install Ansible
run: pip3 install -r .github/workflows/requirements/requirements_galaxy.txt
- name: Import release to Ansible Galaxy
run: ansible-galaxy role import --api-key ${{ secrets.GALAXY_API_KEY }} $(echo ${{ github.repository }} | cut -d/ -f1) $(echo ${{ github.repository }} | cut -d/ -f2)