From 46dae9d54e32b8c6ead1cd984be66345fd183a66 Mon Sep 17 00:00:00 2001 From: Micah Halter Date: Wed, 18 Sep 2024 12:10:55 -0400 Subject: [PATCH] add workflow template for Semantic Versioning releases --- .../semantic_release.properties.json | 5 +++++ workflow-templates/semantic_release.yml | 19 +++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 workflow-templates/semantic_release.properties.json create mode 100644 workflow-templates/semantic_release.yml diff --git a/workflow-templates/semantic_release.properties.json b/workflow-templates/semantic_release.properties.json new file mode 100644 index 0000000..a8149ff --- /dev/null +++ b/workflow-templates/semantic_release.properties.json @@ -0,0 +1,5 @@ +{ + "name": "CAPE Semantic Release Workflow", + "description": "Adds release workflow for tagging semantic versioning based releases (MAJOR.MINOR.PATCH) and requires Pull Requests match Conventional Commit Standards", + "iconName": "octicon tag" +} diff --git a/workflow-templates/semantic_release.yml b/workflow-templates/semantic_release.yml new file mode 100644 index 0000000..45e3fbf --- /dev/null +++ b/workflow-templates/semantic_release.yml @@ -0,0 +1,19 @@ +name: Release + +on: + push: + branches: [main] + pull_request_target: + types: [opened, edited, synchronize] + +permissions: + contents: write + pull-requests: write + +jobs: + Release: + uses: cape-ph/.github/.github/workflows/semantic_release.yml@v1 + secrets: inherit + with: + name: "CAPE Org Utilities" + is_production: ${{ github.event_name == 'push' }}