mirror of
https://github.com/containers/ansible-podman-collections.git
synced 2026-02-04 07:11:49 +00:00
Add build script (#58)
This commit is contained in:
parent
8b717f9201
commit
3330f840c0
6 changed files with 120 additions and 0 deletions
41
.github/workflows/collection-publish.yml
vendored
Normal file
41
.github/workflows/collection-publish.yml
vendored
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
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-16.04
|
||||
ansible-version:
|
||||
- git+https://github.com/ansible/ansible.git@devel
|
||||
runner-python-version:
|
||||
- 3.7
|
||||
steps:
|
||||
|
||||
- name: Check out ${{ github.repository }} on disk
|
||||
uses: actions/checkout@master
|
||||
|
||||
- name: Set up Python ${{ matrix.runner-python-version }}
|
||||
uses: actions/setup-python@v1
|
||||
with:
|
||||
python-version: ${{ matrix.runner-python-version }}
|
||||
|
||||
- name: Install Ansible ${{ matrix.ansible-version }}
|
||||
run: |
|
||||
python -m pip install --user -r contrib/publish-requirements.txt
|
||||
python -m pip install --user -U --force '${{ matrix.ansible-version }}'
|
||||
python -m virtualenv /tmp/new-ansible
|
||||
/tmp/new-ansible/bin/pip install '${{ matrix.ansible-version }}'
|
||||
|
||||
- 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue