Add upload step for windows build
- Add ssh-agent and known_host for windows SSH upload
This commit is contained in:
parent
087968c505
commit
439063dacc
@ -80,13 +80,18 @@ pipeline:
|
||||
- export version=$(echo $CI_COMMIT_BRANCH | grep -Poh "(?<=^release-)\d+\.\d+\.\d+")
|
||||
- ./windows-compile.sh $version
|
||||
|
||||
windows_package:
|
||||
windows_package_and_upload:
|
||||
when:
|
||||
branch: release-*
|
||||
image: offline-twitter/innosetup
|
||||
secrets:
|
||||
- offline_twatter_id_ecdsa
|
||||
commands:
|
||||
- export version=$(echo $CI_COMMIT_BRANCH | grep -Poh "(?<=^release-)\d+\.\d+\.\d+")
|
||||
- iscc.sh /Dversion=$version /Dexe_path=`winepath -w cmd/twitter.exe` build/windows/setup.iss
|
||||
- eval $(ssh-agent)
|
||||
- echo "$OFFLINE_TWATTER_ID_ECDSA" | ssh-add -
|
||||
- scp build/windows/Output/mysetup.exe offline-twitter@offline-twitter.com:/var/www/offline-twitter.com/downloads/offline-twitter-for-windows.exe
|
||||
|
||||
|
||||
depends_on:
|
||||
|
@ -10,3 +10,6 @@ env DISPLAY ":99"
|
||||
env WINEDEBUG "-all,err+all"
|
||||
run xvfb-run wine is.exe /SP- /VERYSILENT /ALLUSERS /SUPPRESSMSGBOXES /DOWNLOADISCRYPT=1
|
||||
copy iscc.sh /usr/bin/iscc.sh
|
||||
|
||||
# For SSH upload
|
||||
copy known_hosts /root/.ssh/known_hosts
|
||||
|
1
.woodpecker/docker/known_hosts
Normal file
1
.woodpecker/docker/known_hosts
Normal file
@ -0,0 +1 @@
|
||||
|1|oLVG8OogkuOJRgCV4ich/pdRIm8=|OLp/ptsX1+UbNBdRUJn3eGOQ4SA= ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAzQ7p29GgUpU8LIGznke+P0md+0jyaplRzyrQpOe7Wv
|
Loading…
x
Reference in New Issue
Block a user