From 36b48f7cdcf59cef912a464ff2ff518329323e27 Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Wed, 24 Jul 2024 16:05:55 +0300 Subject: [PATCH] ghactions: Automatically create gh releases This commit uses the 'gh' command line tool to create a new draft github release and upload the gvproxy* binaries to it. It's triggered on v* tag pushes. Signed-off-by: Christophe Fergeau --- .github/workflows/release.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b83b0d0e2..d817aa2d6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,3 +37,12 @@ jobs: with: name: gvisor-tap-vsock-binaries path: bin/* + + - name: Create release on github + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + gh release create --draft --generate-notes --verify-tag ${{github.ref_name}} + cd bin + sha256sum * >> sha256sums + gh release upload ${{github.ref_name}} *