From b144ea91104194f71fced1e3e10b9d6983504ef5 Mon Sep 17 00:00:00 2001 From: dagou Date: Mon, 9 Sep 2024 14:58:59 +0800 Subject: [PATCH] action --- .github/workflows/release.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index a2dfa79..62e5ad2 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -100,6 +100,26 @@ jobs: cp "target/${{ matrix.target }}/release/$BIN_NAME" "dist/" fi + # Set up the GitHub CLI + - name: Install GitHub CLI + run: | + brew install gh + if: matrix.platform == 'macos-latest' || matrix.platform == 'macos-13' + + - name: Install GitHub CLI + run: | + sudo apt install -y gh + if: matrix.platform == 'ubuntu-20.04' + + - name: Install GitHub CLI + run: | + choco install gh + if: matrix.platform == 'windows-latest' + + # Log in to the GitHub CLI + - name: Login to GitHub CLI + run: echo "${{ secrets.GITHUB_TOKEN }}" | gh auth login --with-token + - name: Upload Release Asset run: | if [ "${{ matrix.os }}" = "windows-2019" ]; then