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' }}