From ea47e688380270dfe4e8c2aa3f1e441d78b7f222 Mon Sep 17 00:00:00 2001 From: sakkyoi <22865542+sakkyoi@users.noreply.github.com> Date: Wed, 3 Jul 2024 22:12:10 +0800 Subject: [PATCH] try fixing tag name --- .github/workflows/main.yml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9d0becd..95a15ec 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -32,12 +32,9 @@ jobs: - run: ./dist/ncp-${{ matrix.name }} --help - id: vars run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT - - - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - gh release create \ - --target ${{ steps.vars.outputs.sha_short }} \ - --title "Release ${{ steps.vars.outputs.sha_short }}" \ - ${{ steps.vars.outputs.sha_short }} \ - dist/* + - uses: softprops/action-gh-release@v2.0.6 + with: + files: dist/* + tag_name: ${{ steps.vars.outputs.sha_short }} + name: Release ${{ steps.vars.outputs.sha_short }} + token: ${{ secrets.GITHUB_TOKEN }}