mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-11-07 03:22:33 +01:00
76 lines
3.2 KiB
YAML
76 lines
3.2 KiB
YAML
steam_linux:
|
|
stage: release_build
|
|
extends:
|
|
- .base_linux_build
|
|
script:
|
|
- python3 Tools/build.py --type=release --steam --deploy-version --use-aqt --installer
|
|
rules:
|
|
- if: "$CI_COMMIT_TAG"
|
|
artifacts:
|
|
paths:
|
|
- build-x64-linux-release/ScreenPlay-$CI_COMMIT_TAG-x64-linux-release.zip
|
|
- build-x64-linux-release/ScreenPlay-$CI_COMMIT_TAG-x64-linux-release.zip.sha256.txt
|
|
|
|
steam_windows:
|
|
stage: release_build
|
|
extends:
|
|
- .base_windows_build
|
|
script:
|
|
- python Tools/build.py --type=release --steam --use-aqt --deploy-version
|
|
rules:
|
|
- if: "$CI_COMMIT_TAG"
|
|
artifacts:
|
|
paths:
|
|
- build-x64-windows-release/ScreenPlay-$CI_COMMIT_TAG-x64-windows-release.zip
|
|
- build-x64-windows-release/ScreenPlay-$CI_COMMIT_TAG-x64-windows-release.zip.sha256.txt
|
|
|
|
steam_osx:
|
|
stage: release_build
|
|
extends:
|
|
- .base_osx_build
|
|
script:
|
|
- python3 Tools/build.py --type=release --steam --use-aqt --deploy-version --sign_osx
|
|
rules:
|
|
- if: "$CI_COMMIT_TAG"
|
|
artifacts:
|
|
paths:
|
|
- build-64-osx-universal-release/ScreenPlay-$CI_COMMIT_TAG-64-osx-universal-release.zip
|
|
- build-64-osx-universal-release/ScreenPlay-$CI_COMMIT_TAG-64-osx-universal-release.zip.sha256.txt
|
|
|
|
release_job:
|
|
stage: release
|
|
image: python:3.11
|
|
dependencies:
|
|
- steam_linux
|
|
- steam_windows
|
|
- steam_osx
|
|
rules:
|
|
- if: "$CI_COMMIT_TAG" # Run this job when a tag is created
|
|
when: on_success # Only when all previous jobs succeed
|
|
script:
|
|
# 1. Combining sha256 files into a SHA512-SUMS.txt
|
|
- echo "Combining sha256 files into a SHA512-SUMS.txt"
|
|
- python3 Tools/create_sha512.py
|
|
# 2. Connect to kelteseth.com and handle the folder
|
|
- echo "Managing remote folder"
|
|
- apt-get update && apt-get install -y sshpass
|
|
- sshpass -p $GETSP_PASSWORD ssh $GETSP_USERNAME@kelteseth.com "if [ -d /getsp.de/$CI_COMMIT_TAG ]; then rm -r /getsp.de/$CI_COMMIT_TAG; else mkdir /getsp.de/$CI_COMMIT_TAG; fi"
|
|
# 3. Upload files to the remote folder
|
|
- echo "Uploading files"
|
|
- sshpass -p $GETSP_PASSWORD scp build-x64-linux-release/ScreenPlay-$CI_COMMIT_TAG-x64-linux-release.zip $GETSP_USERNAME@kelteseth.com:/getsp.de/$CI_COMMIT_TAG/
|
|
- sshpass -p $GETSP_PASSWORD scp build-x64-windows-release/ScreenPlay-$CI_COMMIT_TAG-x64-windows-release.zip $GETSP_USERNAME@kelteseth.com:/getsp.de/$CI_COMMIT_TAG/
|
|
- sshpass -p $GETSP_PASSWORD scp build-64-osx-universal-release/ScreenPlay-$CI_COMMIT_TAG-64-osx-universal-release.zip $GETSP_USERNAME@kelteseth.com:/getsp.de/$CI_COMMIT_TAG/
|
|
- sshpass -p $GETSP_PASSWORD scp SHA512-SUMS.txt $GETSP_USERNAME@kelteseth.com:/getsp.de/$CI_COMMIT_TAG/
|
|
release:
|
|
tag_name: $CI_COMMIT_TAG
|
|
name: "ScreenPlay $CI_COMMIT_TAG Released!"
|
|
description: "🎉 A Wild ScreenPlay Release Appeared!"
|
|
assets:
|
|
links:
|
|
- name: 🐧 Linux x64 build
|
|
url: "https://getsp.de/$CI_COMMIT_TAG/ScreenPlay-$CI_COMMIT_TAG-x64-linux-release.zip"
|
|
- name: 🪟 Windows x64 build
|
|
url: "https://getsp.de/$CI_COMMIT_TAG/ScreenPlay-$CI_COMMIT_TAG-x64-windows-release.zip"
|
|
- name: 🍏 OSX universal build
|
|
url: "https://getsp.de/$CI_COMMIT_TAG/ScreenPlay-$CI_COMMIT_TAG-x64-osx-universal-release.zip"
|