Skip to content

Commit d330a83

Browse files
committed
upate release readme
1 parent 9df533a commit d330a83

File tree

1 file changed

+6
-16
lines changed

1 file changed

+6
-16
lines changed

README.md

+6-16
Original file line numberDiff line numberDiff line change
@@ -154,22 +154,12 @@ We are making releases available as GitHub releases using [go-releaser](https://
154154

155155
To make a release:
156156
1. Set the version number in the constant `version` in the file `cmd/root.go`. The version will be shown with the command `rx --version`
157-
2. Ensure there is no `dist` folder in the project (left from previous release)
158-
3. Get the [personal access token](https://github.com/settings/tokens) - with access to repository and `write:packages` scope, and with enabled SSO for organisation (or create it)
159-
4. Login to the docker repository with your user-name, using personal access token as a password (personal user=name/password authentication is or will be deprecated)
160-
```
161-
docker login ghcr.io -u USER_NAME
162-
```
163-
5. Run the command to create a version with a tag, build a docker image and push them to GitHub repository
164-
```
165-
GITHUB_TOKEN=<PERSONAL_ACCESS_TOKEN> make release VERSION=0.0.1 RELEASE_NOTE="<Release notes>"
166-
```
167-
6. If something goes wrong:
168-
- open the GitHub repository and delete [created tag](https://github.com/equinor/radix-cli/releases/) (with release)
169-
- delete it locally ` git tag -d v0.0.1`
170-
- reset changes `git reset --hard`
171-
- delete the `dist` folder
172-
- perform the previous step `make release ...` again
157+
2. Create and push the new version as a tag: `git tag v0.0.1` and `git push origin v0.0.1`
158+
3. If something goes wrong:
159+
- open the GitHub repository and delete [created tag](https://github.com/equinor/radix-cli/tags/) (with release)
160+
- delete it locally ` git tag -d v0.0.1`
161+
- reset changes `git reset --hard`
162+
- tag the commit againg and push: `git tag v0.0.1` and `git push origin v0.0.1`
173163

174164
To generate a local version for debugging purposes, it can be built using:
175165

0 commit comments

Comments
 (0)