From 00f71f469e1a121144c567ed27fdf26f4b2f8911 Mon Sep 17 00:00:00 2001 From: gek64 <10346089+gek64@users.noreply.github.com> Date: Sat, 21 Oct 2023 02:25:45 +0800 Subject: [PATCH] Update go_build_release.yml --- .github/workflows/go_build_release.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/go_build_release.yml b/.github/workflows/go_build_release.yml index 6c1baaa..78aa731 100644 --- a/.github/workflows/go_build_release.yml +++ b/.github/workflows/go_build_release.yml @@ -28,10 +28,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup golang - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: go-version: '^1.20' @@ -47,7 +47,7 @@ jobs: git clone https://github.com/gek64/gobuilder.git cd gobuilder go mod tidy - go build -v -trimpath -ldflags "-s -w -extldflags -static" -o "${{ github.workspace }}/gobuilder_runner" + go build -v -trimpath -ldflags "-s -w" -o "${{ github.workspace }}/gobuilder_runner" chmod +x "${{ github.workspace }}/gobuilder_runner" cd ${{ github.workspace }} @@ -65,7 +65,7 @@ jobs: echo "$(go run . -v)" > bin/version.txt - name: Remove old Releases - uses: dev-drprasad/delete-older-releases@v0.2.0 + uses: dev-drprasad/delete-older-releases@v0.3.2 with: keep_latest: 0 delete_tags: true @@ -73,7 +73,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Upload artifacts - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: build_files path: bin/* @@ -83,10 +83,10 @@ jobs: needs: build steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Download all artifacts - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: build_files path: bin @@ -111,4 +111,4 @@ jobs: - name: Remove old artifacts uses: c-hive/gha-remove-artifacts@v1 with: - age: "0s" \ No newline at end of file + age: "0s"