From 9903dd5955133c985421fc65385ce53f80d2ae9e Mon Sep 17 00:00:00 2001 From: Leos Stejskal Date: Fri, 26 Jan 2024 10:15:32 +0100 Subject: [PATCH] Github actions for releasing and tagging --- .github/workflows/release.yml | 15 +++++++++++++++ .github/workflows/tag.yml | 13 +++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 .github/workflows/release.yml create mode 100644 .github/workflows/tag.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 000000000..db8947079 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,15 @@ +--- +name: Release + +on: + create: + ref_type: tag + +jobs: + release: + name: Release gem + uses: theforeman/actions/.github/workflows/release-gem.yml@v0 + with: + allowed_owner: theforeman + secrets: + api_key: ${{ secrets.RUBYGEM_API_KEY }} diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml new file mode 100644 index 000000000..1cfdfc54d --- /dev/null +++ b/.github/workflows/tag.yml @@ -0,0 +1,13 @@ +name: Tag + +on: + push: + paths: + - "lib/foreman_ansible/version.rb" + +jobs: + release: + name: Create a tag + uses: theforeman/actions/.github/workflows/create_tag.yml@v0 + with: + allowed_owner: theforeman