From df6614bbffa60802de1a8e1bd470b88870a85881 Mon Sep 17 00:00:00 2001 From: wusatosi <26424577+wusatosi@users.noreply.github.com> Date: Mon, 17 Apr 2023 17:23:12 -0400 Subject: [PATCH] use gh for publishing release --- .github/workflows/autobuild.yaml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/autobuild.yaml b/.github/workflows/autobuild.yaml index e5dae85..3f2f21a 100644 --- a/.github/workflows/autobuild.yaml +++ b/.github/workflows/autobuild.yaml @@ -342,8 +342,7 @@ jobs: run: > cat release/release.env >> $GITHUB_ENV - name: Publish release - run: > - curl -XPATCH - "-HAuthorization: Bearer ${{ secrets.RELEASE_TOKEN }}" - "https://api.github.com/repos/${{ github.repository }}/releases/${{ env.RELEASE_ID }}" - "-d" '{"draft": false}' + run: gh release edit ${{ env.TAG_NAME }} --draft=false + env: + GH_TOKEN: ${{ secrets.RELEASE_TOKEN }} + GH_REPO: ${{ github.repository }}