From 90f3136a89f9f35593d11b171b4979c1608ccb19 Mon Sep 17 00:00:00 2001 From: nange Date: Tue, 17 Dec 2024 15:48:56 +0800 Subject: [PATCH] fix: release action --- .github/workflows/release.yml | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9d6c9deb..c02dc486 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,6 +11,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + with: + fetch-depth: 1 - name: Install Deps run: sudo apt update && sudo apt install -y libgtk-3-dev libayatana-appindicator3-dev @@ -106,27 +108,18 @@ jobs: uses: actions/setup-go@v5 with: go-version-file: 'go.mod' - - name: Build Amd64 run: | GOOS=darwin GOARCH=amd64 make easyss GOOS=darwin GOARCH=amd64 make easyss-server - - name: Pack Amd64 run: | cd bin zip easyss-darwin-amd64.zip ./easyss zip easyss-server-darwin-amd64.zip ./easyss-server - - - name: Set outputs - id: vars - run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT - - - name: Nightly Release + - name: Release uses: softprops/action-gh-release@v2 with: - name: Nightly-${{ steps.vars.outputs.sha_short }} - tag_name: nightly-${{ steps.vars.outputs.sha_short }} - prerelease: true - body: For testing and development only + name: Release ${{ github.ref_name }} + body: TODO files: bin/*.zip