From 39c386edc349884ee1e95a66d3890dd1e57982b1 Mon Sep 17 00:00:00 2001 From: Dimitrii Nikolaev Date: Fri, 20 May 2022 10:19:02 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7b957fe..63204cf 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -32,10 +32,10 @@ build-windows: script: # prepare all possible variants of the thesis - (Get-Content ./Example.tex -Raw) -Replace 'ThesisType.=.{\w*}', 'ThesisType = {SEM}' | Set-Content ./Example_SEM.tex - #- (Get-Content ./Example.tex -Raw) -Replace 'ThesisType.=.{\w*}', 'ThesisType = {PA}' | Set-Content ./Example_PA.tex - #- (Get-Content ./Example.tex -Raw) -Replace 'ThesisType.=.{\w*}', 'ThesisType = {BA}' | Set-Content ./Example_BA.tex - #- (Get-Content ./Example.tex -Raw) -Replace 'ThesisType.=.{\w*}', 'ThesisType = {MA}' | Set-Content ./Example_MA.tex - #- (Get-Content ./Example.tex -Raw) -Replace 'ThesisType.=.{\w*}', 'ThesisType = {PHD}' | Set-Content ./Example_PHD.tex + - (Get-Content ./Example.tex -Raw) -Replace 'ThesisType.=.{\w*}', 'ThesisType = {PA}' | Set-Content ./Example_PA.tex + - (Get-Content ./Example.tex -Raw) -Replace 'ThesisType.=.{\w*}', 'ThesisType = {BA}' | Set-Content ./Example_BA.tex + - (Get-Content ./Example.tex -Raw) -Replace 'ThesisType.=.{\w*}', 'ThesisType = {MA}' | Set-Content ./Example_MA.tex + - (Get-Content ./Example.tex -Raw) -Replace 'ThesisType.=.{\w*}', 'ThesisType = {PHD}' | Set-Content ./Example_PHD.tex # remove Example.tex - no need to compile it now - rm ./Example.tex - rm ./Example.pdf @@ -63,22 +63,24 @@ release-windows: script: - echo "Create Release $TAG from Artifacts of the $BUILD_JOB_ID job" - echo ${BUILD_JOB_ID} -#typeotheroo > - > release-cli --insecure-https create --name "Release $TAG" --description "Release $TAG" --tag-name "$TAG" --assets-links-name "Example_Seminararbeit" --assets-links-url "https://git.ift.tuwien.ac.at/lab/pub/ift-latex/-/jobs/${BUILD_JOB_ID}/artifacts/file/Example_SEM.pdf" - #othe - #--assets-link '{\"name\":\"Example Projektarbeit\",\"url\":\"https://git.ift.tuwien.ac.at/lab/pub/ift-latex/-/jobs/${BUILD_JOB_ID}/artifacts/file/Example_PA.pdf\",\"link_type\":\"other\"}' ` - #--assets-link '{\"name\":\"Example Bachelor Thesis\",\"url\":\"https://git.ift.tuwien.ac.at/lab/pub/ift-latex/-/jobs/${BUILD_JOB_ID}/artifacts/file/Example_BA.pdf\",\"link_type\":\"other\"}' ` - #--assets-link '{\"name\":\"Example Masters Thesis\",\"url\":\"https://git.ift.tuwien.ac.at/lab/pub/ift-latex/-/jobs/${BUILD_JOB_ID}/artifacts/file/Example_MA.pdf\",\"link_type\":\"other\"}' ` - #--assets-link '{\"name\":\"Example PHD Thesis\",\"url\":\"https://git.ift.tuwien.ac.at/lab/pub/ift-latex/-/jobs/${BUILD_JOB_ID}/artifacts/file/Example_PHD.pdf\",\"link_type\":\"other\"}' + --assets-links-name "Example Projektarbeit" + --assets-links-url "https://git.ift.tuwien.ac.at/lab/pub/ift-latex/-/jobs/${BUILD_JOB_ID}/artifacts/file/Example_PA.pdf" + --assets-links-name "Example Bachelor Thesis" + --assets-links-url "https://git.ift.tuwien.ac.at/lab/pub/ift-latex/-/jobs/${BUILD_JOB_ID}/artifacts/file/Example_BA.pdf" + --assets-links-name "Example Masters Thesis" + --assets-links-url "https://git.ift.tuwien.ac.at/lab/pub/ift-latex/-/jobs/${BUILD_JOB_ID}/artifacts/file/Example_MA.pdf" + --assets-links-name "Example PHD Thesis" + --assets-links-url "https://git.ift.tuwien.ac.at/lab/pub/ift-latex/-/jobs/${BUILD_JOB_ID}/artifacts/file/Example_PHD.pdf" #FIXME: insecure https - solution from https://gitlab.com/gitlab-org/release-cli/-/issues/47 #FIXME: multiline looks awful only: # - tags - # - dev_CICD + - dev_CICD # - master -- GitLab