Skip to content

Merge pull request #472 from prometheus-community/autoupdate/postgres… #50

Merge pull request #472 from prometheus-community/autoupdate/postgres…

Merge pull request #472 from prometheus-community/autoupdate/postgres… #50

Workflow file for this run

---
name: Ansible collection publish
on:
push:
tags:
- '*'
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: "Install tools"
run: "python -m pip install ansible-base --disable-pip-version-check"
- name: "Build the collection"
run: ansible-galaxy collection build
- name: "Upload built collection to release"
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: prometheus-prometheus-*.tar.gz
file_glob: true
tag: ${{ github.ref }}
overwrite: true
- name: "Publish collection on galaxy"
uses: ansible/[email protected]
with:
api_key: ${{ secrets.ANSIBLE_GALAXY_API_KEY }}