Skip to content

Commit

Permalink
Merge pull request #440 from stepchowfun/gh
Browse files Browse the repository at this point in the history
Use `gh` instead of `hub`
  • Loading branch information
stepchowfun authored Oct 3, 2023
2 parents 16f4d29 + bfca9b7 commit d7ddbbe
Showing 1 changed file with 11 additions and 14 deletions.
25 changes: 11 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- if: ${{ github.event_name == 'push' }}
uses: azure/docker-login@v1
uses: docker/login-action@v3
with:
username: stephanmisc
password: ${{ secrets.DOCKER_PASSWORD }}
Expand Down Expand Up @@ -200,7 +200,7 @@ jobs:
VERSION="$(cargo pkgid | cut -d# -f2 | cut -d: -f2)"
# If the release already exists, exit early.
if hub release show "v$VERSION" &> /dev/null; then
if gh release view "v$VERSION" &> /dev/null; then
echo "Release v$VERSION already exists."
exit
fi
Expand Down Expand Up @@ -232,18 +232,15 @@ jobs:
artifacts/typical-aarch64-pc-windows-msvc.exe
# Create the release.
hub release create \
--commitish '${{ github.sha }}' \
--message "v$VERSION" \
--attach 'artifacts/typical-x86_64-unknown-linux-gnu' \
--attach 'artifacts/typical-x86_64-unknown-linux-musl' \
--attach 'artifacts/typical-aarch64-unknown-linux-gnu' \
--attach 'artifacts/typical-aarch64-unknown-linux-musl' \
--attach 'artifacts/typical-x86_64-apple-darwin' \
--attach 'artifacts/typical-aarch64-apple-darwin' \
--attach 'artifacts/typical-x86_64-pc-windows-msvc.exe' \
--attach 'artifacts/typical-aarch64-pc-windows-msvc.exe' \
"v$VERSION"
gh release create "v$VERSION" --title "v$VERSION" --notes '' \
'artifacts/typical-x86_64-unknown-linux-gnu' \
'artifacts/typical-x86_64-unknown-linux-musl' \
'artifacts/typical-aarch64-unknown-linux-gnu' \
'artifacts/typical-aarch64-unknown-linux-musl' \
'artifacts/typical-x86_64-apple-darwin' \
'artifacts/typical-aarch64-apple-darwin' \
'artifacts/typical-x86_64-pc-windows-msvc.exe' \
'artifacts/typical-aarch64-pc-windows-msvc.exe'
echo "Created release v$VERSION."
- uses: stepchowfun/toast/.github/actions/toast@main
with:
Expand Down

0 comments on commit d7ddbbe

Please sign in to comment.