Skip to content

Commit

Permalink
action
Browse files Browse the repository at this point in the history
  • Loading branch information
dagou committed Sep 9, 2024
1 parent e05d6fc commit b144ea9
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b144ea9

Please sign in to comment.