Skip to content
Snippets Groups Projects
Commit 3a5be8f3 authored by Arkerthan's avatar Arkerthan
Browse files

reduce duplication in ci definitions

parent 8db98aae
No related branches found
No related tags found
1 merge request!9084Add asset links for not included art options
.official-releases:
rules:
- if: $CI_COMMIT_TAG =~ /\A\d+\.\d+\.\d+\z/
stages:
- build
- upload
......@@ -9,9 +13,7 @@ variables:
build:
stage: build
image: debian:latest
rules:
# only for official releases
- if: $CI_COMMIT_TAG =~ /\A\d+\.\d+\.\d+\z/
extends: .official-releases
script:
- ./compile.sh --ci
artifacts:
......@@ -21,9 +23,7 @@ build:
upload:
stage: upload
image: gitgud.io:5050/pregmodfan/fc-pregmod:megacmd
rules:
# only for official releases
- if: $CI_COMMIT_TAG =~ /\A\d+\.\d+\.\d+\z/
extends: .official-releases
script:
- mega-login $MEGA_MAIL $MEGA_PWD
- zip bin/$FC_PREGMOD_ARCHIVE bin/FC_pregmod.html
......@@ -37,9 +37,7 @@ upload:
release:
stage: release
image: registry.gitlab.com/gitlab-org/release-cli:latest
rules:
# only for official releases
- if: $CI_COMMIT_TAG =~ /\A\d+\.\d+\.\d+\z/
extends: .official-releases
script:
# extract changes from changelog
# get line of version header + 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment