From d7f4f88d5a7e18c04d54b371d938760fcd567484 Mon Sep 17 00:00:00 2001 From: Xiao Yindong Date: Mon, 30 Oct 2023 20:03:49 +0800 Subject: [PATCH] use nicpollo's release action to avoid large file's drop. --- .github/workflows/build.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 763c7c0..8bba1b2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -118,23 +118,25 @@ jobs: run: echo "::set-output name=tag_name::all-in-one-$(date +'%Y%m%d%H%M%S')" - name: Upload Installers - uses: softprops/action-gh-release@v1 + uses: ncipollo/release-action@v1 if: startsWith(github.ref, 'refs/heads/') env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - tag_name: ${{ steps.set_tag.outputs.tag_name }} + tag: ${{ steps.set_tag.outputs.tag_name }} + token: ${{ secrets.GITHUB_TOKEN }} draft: true - body: ${{ github.event.head_commit.message }} - files: | - msys2-* + body: ${{ github.event.head_commit.message }} + artifacts: "msys2-*" + - name: Upload Installers with Tag - uses: softprops/action-gh-release@v1 + uses: ncipollo/release-action@v1 if: startsWith(github.ref, 'refs/tags/') env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: + token: ${{ secrets.GITHUB_TOKEN }} body: ${{ github.event.head_commit.message }} - files: | + artifacts: | msys2-*