Merge pull request #5 from sscheib/ft-linting #7
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: 'Publish latest release to Ansible Galaxy and create a new GitHub release' | |
on: # yamllint disable-line rule:truthy | |
push: | |
tags: | |
- 'v*' | |
workflow_dispatch: {} | |
jobs: | |
build: | |
name: 'Publish to Ansible Galaxy' | |
runs-on: 'ubuntu-latest' | |
steps: | |
- name: 'checkout' | |
uses: 'actions/checkout@v4' | |
if: "github.ref_name == 'main'" | |
- name: 'galaxy' | |
uses: 'robertdebock/[email protected]' | |
if: "github.ref_name == 'main'" | |
with: | |
galaxy_api_key: '${{ secrets.galaxy_api_key }}' | |
git_branch: 'main' | |
- name: 'Create a new release on GitHub' | |
uses: 'softprops/action-gh-release@v2' | |
if: "github.ref_name == 'main'" | |
with: | |
draft: false | |
prerelease: false | |
token: '${{ github.token }}' | |
discussion_category_name: 'Release' | |
generate_release_notes: true | |
make_latest: true | |
... |