-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from crichez/repo/publish-workflow
Automatically publish collections to galaxy when a release is published
- Loading branch information
Showing
9 changed files
with
141 additions
and
34 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
name: Deploy collection to galaxy | ||
on: | ||
release: | ||
types: | ||
- released | ||
|
||
jobs: | ||
publish: | ||
name: Publish to Galaxy | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: checkout@v4 | ||
with: | ||
ref: ${{ github.ref }} | ||
|
||
- name: Build collection | ||
run: ansible-galaxy collection build | ||
|
||
- name: Get expected version string | ||
shell: VERSION=$(echo ${{ github.ref_name }} | sed -e 's/v\(.*\)/\1/' | ||
|
||
- name: Publish to Galaxy | ||
run: | | ||
ansible-galaxy collection publish \ | ||
tofugarden-secureboot-$VERSION.tar.gz \ | ||
--token ${{ secrets.GALAXY_API_KEY }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
name: Release | ||
on: | ||
push: | ||
tags: | ||
- v* | ||
|
||
tags-ignore: | ||
- "*-alpha" | ||
- "*-beta" | ||
|
||
jobs: | ||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install antibull-changelog | ||
run: pip install ansibull-changelog | ||
|
||
- name: Generate changelog | ||
run: ansibull-changelog release | ||
|
||
- name: Build collection tarball | ||
run: ansible-galaxy collection build | ||
|
||
- name: Get version string | ||
shell: echo "VERSION=${GITHUB_REF_NAME:1}" >> "$GITHUB_ENV" | ||
|
||
- uses: ncipollo/release-action@v1 | ||
with: | ||
artifacts: | ||
- crichez-secureboot-${{ env.VERSION }}.tar.gz | ||
body_file: CHANGELOG.md |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
ancestor: null | ||
releases: | ||
1.0.0: | ||
objects: | ||
role: | ||
- description: UKI Configuration. | ||
name: uki_config | ||
namespace: null | ||
release_date: '2024-08-02' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
add_plugin_period: true | ||
changelog_filename_template: ../CHANGELOG.rst | ||
changelog_filename_version_depth: 0 | ||
changelog_nice_yaml: true | ||
changelog_sort: alphanumerical | ||
changes_file: changelog.yaml | ||
changes_format: combined | ||
ignore_other_fragment_extensions: true | ||
keep_fragments: false | ||
mention_ancestor: true | ||
new_plugins_after_name: removed_features | ||
notesdir: fragments | ||
output_formats: | ||
- md | ||
prelude_section_name: release_summary | ||
prelude_section_title: Release Summary | ||
sanitize_changelog: true | ||
sections: | ||
- - major_changes | ||
- Major Changes | ||
- - minor_changes | ||
- Minor Changes | ||
- - breaking_changes | ||
- Breaking Changes / Porting Guide | ||
- - deprecated_features | ||
- Deprecated Features | ||
- - removed_features | ||
- Removed Features (previously deprecated) | ||
- - security_fixes | ||
- Security Fixes | ||
- - bugfixes | ||
- Bugfixes | ||
- - known_issues | ||
- Known Issues | ||
title: Crichez.Secureboot | ||
trivial_section_name: trivial | ||
use_fqcn: true |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
namespace: crichez | ||
name: secureboot | ||
version: 1.0.0 | ||
readme: README.md | ||
authors: | ||
- Christopher Palmer-Richez [email protected] @crichez | ||
description: A collection related to secure boot management. | ||
license: | ||
- GPL-3.0-only | ||
tags: | ||
- linux | ||
- security | ||
- tools | ||
- secureboot | ||
- mok | ||
- shim | ||
- tpm | ||
- uki | ||
dependencies: | ||
community.crypto: ">=2.21.0,<3.0.0" | ||
community.general: ">=9.0.0,<10.0.0" | ||
repository: https://github.com/crichez/crichez.secureboot.git | ||
documentation: https://github.com/crichez/crichez.secureboot | ||
issues: https://github.com/crichez/crichez.secureboot/issues |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
requires_ansible: ">=2.17.0" |
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