From 31f7eaaef752676a9f37114345c206e9c0050677 Mon Sep 17 00:00:00 2001 From: "toby.tan" Date: Fri, 5 Apr 2024 00:09:33 +0800 Subject: [PATCH] update workflow --- .github/workflows/release.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dc2c27655c..62ff02926b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,7 +2,7 @@ name: release on: push: branches: - - master + - cms jobs: build: @@ -28,9 +28,10 @@ jobs: run: zip k9s.zip execs/*;echo "VERSION=$(make -s version)" >> $GITHUB_OUTPUT - name: Release - uses: ncipollo/release-action@v1 + uses: ncipollo/release-action@v1.14.0 with: allowUpdates: true - tag: ${{ steps.version.outputs.VERSION }} + tag: "${GITHUB_REF#refs/heads/}-${{ steps.version.outputs.VERSION }}" token: ${{ secrets.GITHUB_TOKEN }} artifacts: k9s.zip + body: "release for ${GITHUB_REF#refs/heads/} ${{ steps.version.outputs.VERSION }}"