From eadf83b48bae4788fd42d1cb0e07dfc12b069635 Mon Sep 17 00:00:00 2001 From: Steve Pope Date: Wed, 29 Nov 2023 11:45:10 -0330 Subject: [PATCH] Add new release actions --- .github/workflows/release.yml | 15 --------------- .github/workflows/release_hotfix.yml | 9 +++++++++ .github/workflows/release_version.yml | 21 +++++++++++++++++++++ 3 files changed, 30 insertions(+), 15 deletions(-) delete mode 100644 .github/workflows/release.yml create mode 100644 .github/workflows/release_hotfix.yml create mode 100644 .github/workflows/release_version.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 6cac523..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,15 +0,0 @@ -name: Release - -on: - workflow_dispatch: - inputs: - version: - description: 'Version number for the release (e.g., 1.14.1)' - required: true - -jobs: - build-test-publish: - uses: customerio/gist-workflows/.github/workflows/release.yml@master - secrets: inherit - with: - version: ${{ github.event.inputs.version }} diff --git a/.github/workflows/release_hotfix.yml b/.github/workflows/release_hotfix.yml new file mode 100644 index 0000000..a231119 --- /dev/null +++ b/.github/workflows/release_hotfix.yml @@ -0,0 +1,9 @@ +name: Release hotfix from master + +on: + workflow_dispatch: + +jobs: + release: + uses: customerio/gist-workflows/.github/workflows/release_hotfix_version.yml@master + secrets: inherit diff --git a/.github/workflows/release_version.yml b/.github/workflows/release_version.yml new file mode 100644 index 0000000..2967542 --- /dev/null +++ b/.github/workflows/release_version.yml @@ -0,0 +1,21 @@ +name: Release new version from develop + +on: + workflow_dispatch: + inputs: + component: + description: 'Semantic version component to bump' + type: choice + required: true + options: + - 'patch' + - 'minor' + - 'major' + default: 'patch' + +jobs: + release: + uses: customerio/gist-workflows/.github/workflows/release_version.yml@master + secrets: inherit + with: + component: ${{ inputs.component }}