-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: LiZhenCheng9527 <[email protected]>
- Loading branch information
1 parent
5ca1a39
commit c26d5ea
Showing
2 changed files
with
60 additions
and
5 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 |
---|---|---|
|
@@ -3,10 +3,58 @@ on: | |
types: | ||
- published | ||
name: Build Release | ||
permission: | ||
permissions: | ||
contents: read | ||
jobs: | ||
release-assests: | ||
permission: | ||
kmeshctl-assets: | ||
permissions: | ||
contents: write # for softprops/action-gh-release to create GitHub release | ||
|
||
name: release kmeshctl | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
target: | ||
- kmeshctl | ||
os: | ||
- linux | ||
arch: | ||
- amd64 | ||
- arm64 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup go | ||
uses: actions/[email protected] | ||
with: | ||
go-version-file: go.mod | ||
|
||
- name: Making and packaging | ||
env: | ||
GOOS: ${{ matrix.os }} | ||
GOARCH: ${{ matrix.arch }} | ||
run: make build-kmeshctl OUT=kmeshctl-${{ matrix.os }}-${{ matrix.arch }} | ||
- name: Uploading kmeshctl assets | ||
if: ${{ !env.ACT }} | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
files: | | ||
kmeshctl-${{ matrix.os }}-${{ matrix.arch }} | ||
kmesh-helm: | ||
permissions: | ||
contents: write # for softprops/action-gh-release to create GitHub release | ||
name: Release helm | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Making helm package | ||
env: | ||
VERSION: ${{ github.ref_name }} | ||
run: make helm-package CHART_VERSION=${{ github.ref_name }} | ||
- name: Uploading kmesh helm package | ||
if: ${{ !env.ACT }} | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
files: | | ||
out/charts/kmesh-helm-${{ github.ref_name }}.tgz |
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