- Notifications
You must be signed in to change notification settings - Fork7
chore: improve release workflow#60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
2c90507181afd413c6cdc20a87772125e4aff82a7b7ade03c8dede44File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -65,21 +65,23 @@ jobs: | ||
| gsutil -h "Cache-Control:no-cache,max-age=0" cp build/helm/${version}.tgz gs://helm.coder.com/logstream-kube | ||
| gsutil -h "Cache-Control:no-cache,max-age=0" cp build/helm/index.yaml gs://helm.coder.com/logstream-kube | ||
| - name: Create and upload release | ||
| run: | | ||
| set -euo pipefail | ||
| version=${{ steps.version.outputs.version }} | ||
| # check if release already exists and match the version | ||
| if [[ $(gh release view $version --json name -q '.name' | cat) == $version ]]; then | ||
| echo "Release $version already exists" | ||
| exit 0 | ||
| fi | ||
| echo "Creating release $version" | ||
| # if version contains -rc, publish as a pre-release and don't set as latest | ||
| if [[ $version == *-rc* ]]; then | ||
| gh release create $version -t $version --generate-notes --prerelease --latest=false --verify-tag build/${version}.tgz#helm.tar.gz | ||
| else | ||
Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. nit: can remove else case and outdent below block due to MemberAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. I also discovered that the | ||
| gh release create $version -t $version --generate-notes --verify-tag build/${version}.tgz#helm.tar.gz | ||
| fi | ||
| env: | ||
| GITHUB_TOKEN: ${{ github.token }} | ||