Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying the gh cli tool instead of hub #209

Merged
merged 2 commits into from
Mar 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 5 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,10 @@ jobs:
make clean
make package

- name: Install Homebrew
- name: Install GitHub CLI
run: |
sudo apt-get install build-essential procps curl file git
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
test -d ~/.linuxbrew && eval "$(~/.linuxbrew/bin/brew shellenv)"
test -d /home/linuxbrew/.linuxbrew && eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
echo "eval \"\$($(brew --prefix)/bin/brew shellenv)\"" >> ~/.bashrc

sudo apt update
sudo apt install gh

- name: Install hub
run: brew install hub
Expand All @@ -49,4 +45,5 @@ jobs:
for asset in ./out/package/*; do
assets+=("-a" "$asset")
done
hub release edit "${assets[@]}" -m "" "${{ steps.versions.outputs.tag_name }}"
gh auth login --with-token ${{ secrets.GITHUB_TOKEN }}
gh release upload "${{ steps.versions.outputs.tag_name }}" "${assets[@]}"
Loading