Fix Uploding to snapshot release

[skip AppVeyor]
[skip osx]
Continuation of 7f3b3d2c1b
[publish binaries]
This commit is contained in:
Alejandro Martinez
2024-05-26 09:18:17 -03:00
parent 74afb03fee
commit 7cfd1fc79d
5 changed files with 8 additions and 5 deletions

View File

@@ -46,7 +46,8 @@ env:
jobs:
include:
- os: osx
- if: commit_message !~ /\[skip osx\]/
os: osx
osx_image: xcode14.2
compiler: clang
- if: commit_message !~ /\[skip linux\]/

View File

@@ -222,7 +222,7 @@ deploy:
description: 'Snapshot Builds'
artifact: GCinstaller, GCversionWindows
draft: false
prerelease: false
prerelease: true
force_update: true
on:
PUBLISH_BINARIES: true

View File

@@ -97,7 +97,7 @@ if [[ $TRAVIS_PULL_REQUEST == "false" && $TRAVIS_COMMIT_MESSAGE == *"[publish bi
mkdir out
mv $FINAL_NAME out
mv GCversionLinux.txt out
~/go/bin/ghr snapshot out
${TRAVIS_BUILD_DIR}/ghr/ghr -b "Snapshot Builds" -replace snapshot out
else
curl --max-time 300 -F "file=@$FINAL_NAME" https://temp.sh/upload
fi

View File

@@ -58,6 +58,8 @@ cd ${TRAVIS_BUILD_DIR}
sudo apt-get -qq install libgsl-dev
# GHR to upload binaries to GitHub releases
go install github.com/tcnksm/ghr@latest
wget --no-verbose https://github.com/tcnksm/ghr/releases/download/v0.16.2/ghr_v0.16.2_linux_amd64.tar.gz
tar xf ghr_v0.16.2_linux_amd64.tar.gz
mv ghr_v0.16.2_linux_amd64 ghr
exit

View File

@@ -70,7 +70,7 @@ if [[ $TRAVIS_PULL_REQUEST == "false" && $TRAVIS_COMMIT_MESSAGE == *"[publish bi
mkdir out
mv $FINAL_NAME out
mv GCversionMacOS.txt out
ghr snapshot out
ghr -b "Snapshot Builds" -replace snapshot out
else
curl --max-time 300 -F "file=@$FINAL_NAME" https://temp.sh/upload
fi