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