Skip to content

Commit

Permalink
try harder to release
Browse files Browse the repository at this point in the history
  • Loading branch information
unRob committed Nov 2, 2021
1 parent c01c617 commit dac257b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:

- name: Checkout source
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Cache go modules
uses: actions/cache@v2
Expand All @@ -29,16 +31,24 @@ jobs:
- name: Setup dependencies
run: |
echo "::group::install upx"
curl -LO https://github.com/upx/upx/releases/download/v3.96/upx-3.96-amd64_linux.tar.xz
tar xf upx-3.96-amd64_linux.tar.xz
sudo mv upx-3.96-amd64_linux/upx /usr/local/bin/upx
echo "::endgroup::"
echo "::group::build compa"
go build -ldflags "-s -w -X main.version=CI" -o compa
echo "::endgroup::"
echo "::group::pull notes"
git config --global user.email "[email protected]"
git config --global user.name "Milpa CI"
git ls-remote | awk '/refs\/notes/ {print $2}' | while read -r noteKind; do
git pull --rebase origin "$noteKind"
done
echo "::endgroup::"
go get -u github.com/mitchellh/gox
Expand Down Expand Up @@ -78,8 +88,8 @@ jobs:
with:
body: ${{ env.RELEASE_NOTES }}
files: |
dist/packages/*.tgz
dist/packages/*.shasum
dist/*.tgz
dist/*.shasum
prerelease: ${{ steps.build.outputs.prerelease }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .milpa/commands/itself/upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@milpa.load_util milpa-version

if versions="$(@milpa.version.is_latest)"; then
@milpa.log fail "Already running latest version"
@milpa.fail "Already running latest version"
fi

read -r latest installed <<<"$versions"
Expand Down

0 comments on commit dac257b

Please sign in to comment.