Skip to content
Snippets Groups Projects
Commit 7fd2e0a5 authored by Tobias Glaser's avatar Tobias Glaser
Browse files

improving gitlab-ci: automated releases

parent 2abe4e97
No related branches found
No related tags found
No related merge requests found
stages:
- build
- release
# see https://www.msys2.org/docs/ci/#gitlab
Windows-MSYS2-MINGW64:
stage: build
only:
- tags
tags: [ windows, msys2 ]
......@@ -38,6 +43,24 @@ Windows-MSYS2-MINGW64:
mv .gitignore template/
zip -r template-windows.zip template/
'
artifacts:
paths:
- template-windows.zip
\ No newline at end of file
- |
C:\msys64\usr\bin\bash -lcx '
curl --header "PRIVATE-TOKEN: $CI_JOB_TOKEN" \
--upload-file template-windows.zip \
"https://gitlab.com/api/v4/projects/$CI_PROJECT_ID/packages/generic/cutelib-hsrt/$CI_COMMIT_TAG/template-windows.zip"'
Publish:
stage: release
image: registry.gitlab.com/gitlab-org/release-cli:latest
script:
- echo "Creating GitLab Release $CI_COMMIT_TAG..."
release:
name: "Release $CI_COMMIT_TAG"
tag_name: "$CI_COMMIT_TAG"
description: "Automated release including Windows builds." # & Linux
assets:
links:
- name: "Windows Template"
url: "https://gitlab.com/api/v4/projects/$CI_PROJECT_ID/packages/generic/cutelib-hsrt/$CI_COMMIT_TAG/template-windows.zip"
#- name: "Linux Template"
# url: "https://gitlab.com/api/v4/projects/$CI_PROJECT_ID/packages/generic/cutelib-hsrt/$CI_COMMIT_TAG/template-linux.zip"
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