mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-04-08 11:50:28 -07:00
Adding Ansible collection
This commit is contained in:
parent
8b084fde7c
commit
1a17b21997
1 changed files with 25 additions and 0 deletions
25
.github/workflows/pythonpublish.yml
vendored
Normal file
25
.github/workflows/pythonpublish.yml
vendored
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
name: Upload release to Galaxy
|
||||||
|
|
||||||
|
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_GALAXY_API_KEY: ${{ secrets.ANSIBLE_GALAXY_API_KEY }}
|
||||||
|
run: |
|
||||||
|
ansible-galaxy collection build .
|
||||||
|
ansible-galaxy collection publish *.tar.gz --api-key $ANSIBLE_GALAXY_API_KEY
|
Loading…
Add table
Reference in a new issue