aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/build.yml10
1 files changed, 5 insertions, 5 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 4eaa7f7..312bb14 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -39,14 +39,10 @@ jobs:
run: |
gh release delete -y continuous || true; gh release create -t 'Continuous Release' continuous *.zip *.tar.gz
if [[ `git tag --points-at HEAD | head -c 1` == "v" ]]; then
- gh release delete -y $VERSION || true;
+ gh release delete -y v$VERSION || true;
gh release create -t v$VERSION v$VERSION lpm.x86_64-linux lpm.x86_64-windows.exe
gh release delete -y latest || true;
gh release create -t latest latest lpm.x86_64-linux lpm.x86_64-windows.exe
- git branch -f latest HEAD
- git tag -f latest
- git push -f origin refs/heads/latest
- git push -f origin refs/tags/latest
fi
build_macos:
@@ -71,4 +67,8 @@ jobs:
if [[ `git tag --points-at HEAD | head -c 1` == "v" ]]; then
gh release upload v$VERSION lpm.x86_64-darwin
gh release upload latest lpm.x86_64-darwin
+ git branch -f latest HEAD
+ git tag -f latest
+ git push -f origin refs/heads/latest
+ git push -f origin refs/tags/latest
fi