mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-04-06 19:00:27 -07:00
automation hub upload
This commit is contained in:
parent
72ff8360fd
commit
6f8e9843e5
1 changed files with 25 additions and 0 deletions
25
.github/workflows/automationhub.yml
vendored
Normal file
25
.github/workflows/automationhub.yml
vendored
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
name: Upload release to Automation Hub
|
||||||
|
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types: [created]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
- name: Set up Python
|
||||||
|
uses: actions/setup-python@v1
|
||||||
|
with:
|
||||||
|
python-version: '3.x'
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
python -m pip install --upgrade pip
|
||||||
|
pip install ansible
|
||||||
|
- name: Build and publish
|
||||||
|
env:
|
||||||
|
ANSIBLE_AUTOMATION_HUB_API_KEY: ${{ secrets.ANSIBLE_AUTOMATION_HUB_API_KEY }}
|
||||||
|
run: |
|
||||||
|
ansible-galaxy collection build .
|
||||||
|
ansible-galaxy collection publish *.tar.gz --api-key $ANSIBLE_GALAXY_API_KEY --url=https://cloud.redhat.com/api/automation-hub/
|
Loading…
Add table
Reference in a new issue