Skip to content

Merge pull request #5 from sscheib/ft-linting #7

Merge pull request #5 from sscheib/ft-linting

Merge pull request #5 from sscheib/ft-linting #7

Workflow file for this run

---
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
...