diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index ee7bdb7ca3..2b65ec1d26 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -6,6 +6,11 @@ on: tag: description: Git tag to build release from required: true + update_stable_tag: + description: 'Update stable tag' + required: true + type: boolean + default: 'false' permissions: contents: read @@ -196,7 +201,8 @@ jobs: - name: update stable tag for docs run: | git tag -f stable ${{ github.event.inputs.tag }} - git push -f origin stable + git push -f origin stable + if: ${{ inputs.update_stable_tag }} - name: Draft release uses: softprops/action-gh-release@v1 diff --git a/docs/releasing.md b/docs/releasing.md index 8ac0a4d450..d4571c076c 100644 --- a/docs/releasing.md +++ b/docs/releasing.md @@ -5,18 +5,14 @@ 1. Visit the [Release GitHub Action](https://github.com/argoproj/argo-rollouts/actions/workflows/release.yaml) and enter the tag. +1. To automatically update the stable tag, select `Update stable tag`. (false by default) + [![GitHub Release Action](release-action.png)](release-action.png) 1. When the action completes, visit the generated draft [Github releases](https://github.com/argoproj/argo-rollouts/releases) and enter the details about the release: * Getting started (copy from previous release and new version) * Changelog -1. Update `stable` tag: - - ```bash - git tag stable --force && git push $REPO stable --force - ``` - 1. Update Brew formula: * Fork the repo https://github.com/argoproj/homebrew-tap