Skip to content

Commit

Permalink
chore: update stable tag conditionally (argoproj#2480)
Browse files Browse the repository at this point in the history
* chore: update stable tag conditionally

Signed-off-by: Justin Marquis <[email protected]>

* updated requested changes

Signed-off-by: Justin Marquis <[email protected]>

Signed-off-by: Justin Marquis <[email protected]>
Signed-off-by: Travis Perdue <[email protected]>
  • Loading branch information
34fathombelow authored and Travis Perdue committed Jan 12, 2023
1 parent 3d43c2c commit 481ba32
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down
8 changes: 2 additions & 6 deletions docs/releasing.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 481ba32

Please sign in to comment.