CI: add job for creating stable releases using tags

[skip ci]
time-shift
Sébastien Villemot 2019-10-15 11:40:23 +02:00
parent 7f4477b141
commit 2544d2197f
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
1 changed files with 18 additions and 0 deletions

View File

@ -246,3 +246,21 @@ deploy_snapshot_unstable_enterprise:
- f=(windows/zip/*) && cp ${f[0]} /srv/www.dynare.org/snapshot_ecb/windows-zip/ && ln -sf ${f[0]##*/} /srv/www.dynare.org/snapshot_ecb/windows-zip/dynare-latest-win.zip
- f=(macOS/pkg/*) && cp ${f[0]} /srv/www.dynare.org/snapshot_ecb/macos/ && ln -sf ${f[0]##*/} /srv/www.dynare.org/snapshot_ecb/macos/dynare-latest-macos.pkg
- ~/update-snapshot_ecb-list.sh
deploy_stable_enterprise:
stage: deploy
only:
- tags@Enterprise/dynare
tags:
- restricted
dependencies:
- pkg_source
- pkg_windows
- pkg_macOS
script:
- f=(windows/exe/*) && osslsigncode sign -pkcs12 ~/dynare-object-signing.p12 -n Dynare -i https://www.dynare.org -in ${f[0]} -out ${f[0]}.signed && mv ${f[0]}.signed ${f[0]}
- cp *.tar.xz /srv/www.dynare.org/release_ecb/source/
- cp windows/exe/* /srv/www.dynare.org/release_ecb/windows/
- cp windows/7z/* /srv/www.dynare.org/release_ecb/windows-7z/
- cp windows/zip/* /srv/www.dynare.org/release_ecb/windows-zip/
- cp macOS/pkg/* /srv/www.dynare.org/release_ecb/macos/