From 8fcf39889d9865ef702d97b8d2ea77cc10d4441c 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 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b83b0d0e2..39051af6a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,3 +37,13 @@ jobs: with: name: gvisor-tap-vsock-binaries path: bin/* + + - name: Create release on github + id: upload + 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}} *