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