1
0
Fork 0
mirror of https://github.com/containers/ansible-podman-collections.git synced 2026-02-04 07:11:49 +00:00
ansible-podman-collections/.github/workflows/collection-publish.yml
dependabot[bot] 313953aed4
Bump actions/setup-python from 5 to 6 (#975)
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 5 to 6.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-08 20:01:33 +03:00

43 lines
1.3 KiB
YAML

name: Collection release and publish
on:
push:
tags:
- '[0-9]+\.[0-9]+\.[0-9]+'
jobs:
publish-collection-artifact:
name: Publish
runs-on: ${{ matrix.runner-os }}
strategy:
matrix:
runner-os:
- ubuntu-22.04
ansible-version:
- git+https://github.com/ansible/ansible.git@stable-2.15
runner-python-version:
- 3.9
steps:
- name: Check out ${{ github.repository }} on disk
uses: actions/checkout@v5
- name: Set up Python ${{ matrix.runner-python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.runner-python-version }}
- name: Install Ansible ${{ matrix.ansible-version }}
run: |
python -m pip install virtualenv
python -m virtualenv /tmp/new-ansible
/tmp/new-ansible/bin/pip install '${{ matrix.ansible-version }}'
/tmp/new-ansible/bin/pip install -r contrib/publish-requirements.txt
- name: Generate a version from tag
run: >-
./contrib/publish.sh ${GITHUB_REF##*/}
env:
API_GALAXY_TOKEN: ${{ secrets.API_GALAXY_TOKEN }}
GALAXY_PATH: /tmp/new-ansible/bin/ansible-galaxy
PYTHON_PATH: /tmp/new-ansible/bin/python
DRYRUN: 0