1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-05 18:42:29 +01:00

Add release ci

This commit is contained in:
Elias Steurer 2023-08-18 12:32:20 +02:00
parent bdd613ab01
commit 31f5fb7fa1
2 changed files with 25 additions and 0 deletions

View File

@ -11,6 +11,9 @@ stages:
- build_steam
# Git release tag builds
- release_build
# Gitlab releases at:
# https://gitlab.com/kelteseth/ScreenPlay/-/releases
- release
# Checks for source code formattings
- check

View File

@ -22,6 +22,7 @@ steam_windows:
paths:
- build-x64-windows-release/ScreenPlay-Installer.exe
- build-x64-windows-release/ScreenPlay-$CI_COMMIT_TAG-x64-windows-release.zip
steam_osx:
stage: release_build
extends:
@ -33,3 +34,24 @@ steam_osx:
artifacts:
paths:
- build-64-osx-universal-release/ScreenPlay.app
release_job:
stage: release
image: registry.gitlab.com/gitlab-org/release-cli:latest
rules:
- if: "$CI_COMMIT_TAG" # Run this job when a tag is created
when: on_success # Only when all previous jobs succeed
script:
- echo "Creating a GitLab release using release-cli."
release:
tag_name: $CI_COMMIT_TAG
name: "ScreenPlay $CI_COMMIT_TAG Released!"
description: "🎉 A Wild ScreenPlay Release Appeard!"
assets:
links:
- name: Linux x64 build
url: "$CI_PIPELINE_URL/artifacts/download?job=steam_linux"
- name: Windows x64 build
url: "$CI_PIPELINE_URL/artifacts/download?job=steam_windows"
- name: OSX universal build
url: "$CI_PIPELINE_URL/artifacts/download?job=steam_osx"