Skip to content

Commit

Permalink
Update release build (#6504)
Browse files Browse the repository at this point in the history
# Description
update release build yaml

## Type of change

<!--

Please select **one** of the following options that describes your
change and delete the others. Clearly identifying the type of change you
are making will help us review your PR faster, and is used in authoring
release notes.

If you are making a bug fix or functionality change to Radius and do not
have an associated issue link please create one now.

-->

- This pull request fixes a bug in Radius and has an approved issue
(issue link required).
- This pull request adds or changes features of Radius and has an
approved issue (issue link required).
- This pull request is a minor refactor, code cleanup, test improvement,
or other maintenance task and doesn't change the functionality of Radius
(issue link optional).

<!--

Please update the following to link the associated issue. This is
required for some kinds of changes (see above).

-->

Fixes: #issue_number

## Auto-generated summary

<!--
GitHub Copilot for docs will auto-generate a summary of the PR
-->

<!--
copilot:all
-->
### <samp>🤖 Generated by Copilot at 09efdbb</samp>

### Summary
🔑🚀✏️

<!--
1. 🔑 - This emoji represents the change in authentication method, since
it is related to keys and security.
2. 🚀 - This emoji represents the creation of releases, since it is often
used to indicate launching or deploying something.
3. ✏️ - This emoji represents the editing or simplification of the
release titles, since it is related to writing or correcting something.
-->
This pull request changes the release workflow for the
`radius-project/radius` repository. It uses a more secure authentication
method and simplifies the release titles.

> _The workflow for building was changed_
> _To use a new auth exchange_
> _The titles are shorter_
> _No more "Project" clutter_
> _The file `build.yaml` was rearranged_

### Walkthrough
* Set `GITHUB_TOKEN` to `GH_RAD_CI_BOT_PAT` secret for `gh` tool
authentication
([link](https://github.com/radius-project/radius/pull/6504/files?diff=unified&w=0#diff-d0777657fa3fd81d23aaf7273e58aee453b04e67882517900c56daeef9b3e4c1R323-R324))
* Remove "Project" from release title for consistency with repository
and branding
([link](https://github.com/radius-project/radius/pull/6504/files?diff=unified&w=0#diff-d0777657fa3fd81d23aaf7273e58aee453b04e67882517900c56daeef9b3e4c1L341-R343),
[link](https://github.com/radius-project/radius/pull/6504/files?diff=unified&w=0#diff-d0777657fa3fd81d23aaf7273e58aee453b04e67882517900c56daeef9b3e4c1L350-R352))
  • Loading branch information
sk593 authored Oct 18, 2023
1 parent 85eae42 commit 48db3fb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,8 @@ jobs:
name: Publish GitHub Release
needs: ['build-and-push-cli']
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GH_RAD_CI_BOT_PAT }}
if: startsWith(github.ref, 'refs/tags/v')
steps:
- name: Checkout
Expand All @@ -338,7 +340,7 @@ jobs:
run: |
gh release create v${{ env.REL_VERSION }} \
${{ env.RELEASE_PATH }}/* \
--title "Project Radius v${{ env.REL_VERSION }}" \
--title "Radius v${{ env.REL_VERSION }}" \
--generate-notes \
--verify-tag \
--prerelease
Expand All @@ -347,7 +349,7 @@ jobs:
run: |
gh release create v${{ env.REL_VERSION }} \
${{ env.RELEASE_PATH }}/* \
--title "Project Radius v${{ env.REL_VERSION }}" \
--title "Radius v${{ env.REL_VERSION }}" \
--notes-file docs/release-notes/v${{ env.REL_VERSION }}.md \
--verify-tag
Expand Down

0 comments on commit 48db3fb

Please sign in to comment.