Merge pull request #498 from travisdowns/td-fix-457 #53
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Ansible collection publish | |
on: | |
push: | |
tags: | |
- '*' | |
workflow_dispatch: | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: "Build the collection" | |
id: build-collection | |
uses: ansible-community/github-action-build-collection@main | |
- name: "Upload built collection to release" | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: ${{ steps.build-collection.outputs.artifact-filename }} | |
file_glob: true | |
tag: ${{ github.ref }} | |
overwrite: true | |
- name: "Publish collection on galaxy" | |
uses: ansible/ansible-publish-action@v1.0.0 | |
with: | |
api_key: ${{ secrets.ANSIBLE_GALAXY_API_KEY }} |