From 9bbe10d4639404510c16542ddd6975ec61a9848c Mon Sep 17 00:00:00 2001 From: ihexon <14349453+ihexon@users.noreply.github.com> Date: Thu, 20 Feb 2025 10:19:54 +0800 Subject: [PATCH] chore(ci): using upload and release action --- .github/workflows/build.yaml | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index b1146c1..b79dddc 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -26,4 +26,27 @@ jobs: version: 'latest' - name: Build - run: make build \ No newline at end of file + run: make build + + - name: Upload artifact + uses: 'actions/upload-artifact@v4' + with: + name: sshexec + path: | + out/sshexec-amd64 + out/sshexec-arm64 + if-no-files-found: error + overwrite: true + + - name: Release + uses: softprops/action-gh-release@v2 + if: startsWith(github.ref, 'refs/tags/') + with: + generate_release_notes: true + files: | + out/sshexec-amd64 + out/sshexec-arm64 + append_body: true + draft: false + prerelease: false + make_latest: true \ No newline at end of file