Add upload step for windows build

- Add ssh-agent and known_host for windows SSH upload
This commit is contained in:
Alessio 2024-03-13 19:22:15 -07:00
parent 087968c505
commit 439063dacc
3 changed files with 10 additions and 1 deletions

View File

@ -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:

View File

@ -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

View File

@ -0,0 +1 @@
|1|oLVG8OogkuOJRgCV4ich/pdRIm8=|OLp/ptsX1+UbNBdRUJn3eGOQ4SA= ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAzQ7p29GgUpU8LIGznke+P0md+0jyaplRzyrQpOe7Wv