Skip to content

Commit

Permalink
hub is deleted from agent, use nix-shell hub instead
Browse files Browse the repository at this point in the history
  • Loading branch information
jcouyang committed Mar 2, 2024
1 parent 284f4a8 commit 1fb8c36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,11 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
LAST_RELEASE=$(hub release -L 1)
LAST_RELEASE=$(nix-shell -p hub --run 'hub release -L 1')
LOCAL_VERSION=$(dhall text < ./version.dhall)
echo "main version is $LAST_RELEASE and current version is $LOCAL_VERSION"
if [ ${LAST_RELEASE:-0} != $LOCAL_VERSION ];then
hub release create -m "${LOCAL_VERSION}" "${LOCAL_VERSION}"
nix-shell -p hub --run "hub release create -m $LOCAL_VERSION $LOCAL_VERSION"
fi
- name: publish doc
env:
Expand Down

0 comments on commit 1fb8c36

Please sign in to comment.