From 74c17cde81a775a6da176ed69e4ad88bd6357937 Mon Sep 17 00:00:00 2001 From: Bachue Zhou Date: Tue, 15 Oct 2024 14:18:34 +0800 Subject: [PATCH] try to fix release action --- .github/workflows/release.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 47bda91a..7f71fd45 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -50,7 +50,7 @@ jobs: - goarch: arm64 goos: windows steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set APP_VERSION env run: echo ::set-env name=APP_VERSION::$(cat ${GITHUB_EVENT_PATH} | jq -r .release.tag_name ) - name: Prepare qshell @@ -68,18 +68,18 @@ jobs: github_token: ${{ secrets.GITHUB_TOKEN }} goos: ${{ matrix.goos }} goarch: ${{ matrix.goarch }} - goversion: "https://golang.org/dl/go1.20.1.linux-amd64.tar.gz" + goversion: "https://go.dev/dl/go1.23.2.linux-amd64.tar.gz" ldflags: -X "github.com/qiniu/qshell/v2/iqshell/common/version.version=${{ env.APP_VERSION }}" -extldflags "-static" project_path: "./main" retry: '100' - name: Upload Release Asset to Qiniu run: | set -e - cd ./main/build-artifacts-* + cd ./main/ FILENAME="qshell-${{ env.APP_VERSION }}-${{ matrix.goos }}-${{ matrix.goarch }}.tar.gz" if [ "${{ matrix.goos }}" = "windows" ]; then FILENAME="qshell-${{ env.APP_VERSION }}-${{ matrix.goos }}-${{ matrix.goarch }}.zip" fi - ../../qshell rput --resumable-api-v2 --overwrite "$PUBLISH_BUCKET_NAME" "$FILENAME" "$FILENAME" + ../qshell rput --resumable-api-v2 --overwrite "$PUBLISH_BUCKET_NAME" "$FILENAME" "$FILENAME" env: PUBLISH_BUCKET_NAME: ${{ secrets.PUBLISH_BUCKET_NAME }}