From 45dcb7979cd9e06931c62231691af89c7ab9c79a Mon Sep 17 00:00:00 2001 From: zema1 Date: Sun, 25 Aug 2024 19:54:32 +0800 Subject: [PATCH] feat: undo github actions upgrade --- .github/actions/action.yml | 2 +- .github/workflows/release.yml | 9 +++++---- .github/workflows/test.yml | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/actions/action.yml b/.github/actions/action.yml index 8cf3328..aa970fb 100644 --- a/.github/actions/action.yml +++ b/.github/actions/action.yml @@ -8,7 +8,7 @@ inputs: runs: using: composite steps: - - uses: actions/download-artifact@v4 + - uses: actions/download-artifact@v3 with: name: test-target path: . diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ef8ee0d..b35abf6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,6 +5,7 @@ on: branches: - 'release**' - 'main' + - 'feat**' release: types: [ published ] @@ -46,7 +47,7 @@ jobs: with: go-version: '1.20' - run: go build -trimpath -ldflags "-w -s -extldflags '-static' -X main.Version=${{ github.ref_name }}" -o target/${{ matrix.output }} - - uses: actions/upload-artifact@v4 + - uses: actions/upload-artifact@v3 with: name: target path: target/* @@ -97,7 +98,7 @@ jobs: ditto -c -k --keepParent ./build/bin/${{matrix.output}}.app ./build/bin/${{matrix.output}}.app.zip rm -rf ./build/bin/${{ matrix.output }}.app - - uses: actions/upload-artifact@v4 + - uses: actions/upload-artifact@v3 with: name: target path: gui/build/bin/* @@ -110,7 +111,7 @@ jobs: contents: write steps: - uses: actions/checkout@v4 - - uses: actions/download-artifact@v4 + - uses: actions/download-artifact@v3 with: name: target path: target @@ -121,7 +122,7 @@ jobs: rm -rf suo5.pkg mv suo5.app.zip suo5-gui-darwin.app.zip - run: ls -al target && ls -R target/ && file target/ - - uses: actions/upload-artifact@v4 + - uses: actions/upload-artifact@v3 with: name: target-release path: target/* diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e786142..05c69d4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -30,7 +30,7 @@ jobs: with: go-version: '1.20' - run: go build -trimpath -ldflags "-w -s -extldflags '-static'" -o suo5 - - uses: actions/upload-artifact@v4 + - uses: actions/upload-artifact@v3 with: name: test-target path: suo5