Skip to content

Commit

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

Signed-off-by: Justin Marquis <34fathombelow@protonmail.com>

* updated requested changes

Signed-off-by: Justin Marquis <34fathombelow@protonmail.com>

Signed-off-by: Justin Marquis <34fathombelow@protonmail.com>
  • Loading branch information
34fathombelow authored Dec 15, 2022
1 parent f5fb4c4 commit b30ada2
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 b30ada2

Please sign in to comment.