Commit 4bab7f39 authored by Sebastian Friedl's avatar Sebastian Friedl
Browse files

Automate Release Tasks

parent 89ac483c
......@@ -3,6 +3,8 @@
stages:
- prepare
- build
- upload
- release
variables:
GIT_SUBMODULE_STRATEGY: recursive
......@@ -57,3 +59,46 @@ build:
expire_in: 6 hrs
tags:
- docker
gitlab_upload:
stage: upload
rules:
- if: $CI_COMMIT_TAG
when: never
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
image:
name: alpine:3.14
before_script:
- apk -U add curl
script:
- |
curl \
--header "JOB-TOKEN: ${CI_JOB_TOKEN}" \
--upload-file "CHANGELOG" \
"${REG_GEN}/CHANGELOG"
- |
curl \
--header "JOB-TOKEN: ${CI_JOB_TOKEN}" \
--upload-file "gypt-fonts.zip" \
"${REG_GEN}/gypt-fonts.zip"
tags:
- docker
gitlab_release:
stage: release
rules:
- if: $CI_COMMIT_TAG
when: never
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
image:
name: registry.gitlab.com/gitlab-org/release-cli:latest
script:
- |
release-cli create \
--name "GYPT Fonts, Version ${FNT_REV}" --tag-name "v${FNT_REV}" \
--assets-link "{\"name\": \"Changelog\", \"url\": \"${REG_GEN}/CHANGELOG\"}" \
--assets-link "{\"name\": \"GYPT Fonts v${FNT_REV}\", \"url\": \"${REG_GEN}/gypt-fonts.zip\"}"
tags:
- docker
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment