-
Notifications
You must be signed in to change notification settings - Fork 765
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. Automating the release workflow 2. Release Notes Template Signed-off-by: Yang Jiao <[email protected]>
- Loading branch information
1 parent
c7d2e6b
commit 590e88e
Showing
2 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# .github/release.yml | ||
|
||
changelog: | ||
exclude: | ||
labels: | ||
- release-note/ignore-for-release | ||
authors: | ||
- octocat | ||
categories: | ||
- title: Exciting New Features π | ||
labels: | ||
- release-note/new-feature | ||
- title: Enhancement π | ||
labels: | ||
- release-note/enhancement | ||
- title: Component updates β¬οΈ | ||
labels: | ||
- release-note/update | ||
- title: Docs update ποΈ | ||
labels: | ||
- release-note/docs | ||
- title: Community update π§π»βπ€βπ§πΎ | ||
labels: | ||
- release-note/community | ||
|
||
- title: Breaking Changes π | ||
labels: | ||
- release-note/breaking-change | ||
|
||
- title: Deprecations β | ||
labels: | ||
- release-note/deprecation | ||
|
||
- title: Other Changes | ||
labels: | ||
- "*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Publish Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*.*.*' | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.ref }} | ||
- name: Setup Helm | ||
uses: azure/setup-helm@v3 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
id: install | ||
- name: Helm Package | ||
run: echo "PACKAGE_PATH=$(helm package ../harbor-helm | awk '{print $NF}')" >> $GITHUB_ENV | ||
- name: Publish Helm Chart | ||
run: | | ||
helm registry login registry-1.docker.io -u ${{ secrets.DOCKER_HUB_USERNAME }} -p ${{ secrets.DOCKER_HUB_PASSWORD }} | ||
helm push ${{ env.PACKAGE_PATH }} oci://registry-1.docker.io/${{ secrets.DOCKER_HUB_USERNAME }} | ||
helm registry login ghcr.io -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }} | ||
helm push ${{ env.PACKAGE_PATH }} oci://ghcr.io/${{ github.actor }} | ||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: ${{ env.PACKAGE_PATH }} |