mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 08:08:42 +00:00
Fix Uploding to snapshot release
[skip AppVeyor]
[skip osx]
Continuation of 7f3b3d2c1b
[publish binaries]
This commit is contained in:
@@ -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\]/
|
||||
|
||||
@@ -222,7 +222,7 @@ deploy:
|
||||
description: 'Snapshot Builds'
|
||||
artifact: GCinstaller, GCversionWindows
|
||||
draft: false
|
||||
prerelease: false
|
||||
prerelease: true
|
||||
force_update: true
|
||||
on:
|
||||
PUBLISH_BINARIES: true
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user