From fda7a8dce40f2ce37a611837e17236a09fcb4007 Mon Sep 17 00:00:00 2001 From: Ducca <64695363+duccas@users.noreply.github.com> Date: Fri, 20 Oct 2023 17:53:37 +0300 Subject: [PATCH] test release --- .github/workflows/release.yml | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 02914c1..e6fc032 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,12 +19,18 @@ jobs: echo "::set-output name=version::$(cat release | grep version | cut -d= -f2)" echo "::set-output name=description::$(awk '/description=/{flag=1; next} /another-marker=/{flag=0} flag' release)" + - name: Setup GitHub CLI + run: | + sudo apt-get install -y gh + + - name: Authenticate with GitHub CLI + run: echo "${{ secrets.GIT_TOKEN }}" | gh auth login --with-token + - name: Create GitHub Release - uses: gh-actions/gh-release@v1 - with: - tag_name: ${{ steps.get_info.outputs.version }} - release_name: Release ${{ steps.get_info.outputs.version }} - body: ${{ steps.get_info.outputs.description }} - draft: false - prerelease: false - token: ${{ secrets.GIT_TOKEN }} + run: | + gh release create ${{ steps.get_info.outputs.version }} \ + --title "Release ${{ steps.get_info.outputs.version }}" \ + --notes "${{ steps.get_info.outputs.description }}" \ + --repo ${{ github.repository }} \ + --draft=false \ + --prerelease=false