From b61500e27943bbaff452848c9b77b324e2391c16 Mon Sep 17 00:00:00 2001 From: Jannik Dunkelau <jannik.dunkelau@hhu.de> Date: Tue, 5 Apr 2022 17:56:50 +0200 Subject: [PATCH] Abuse gitlab pages logic to publish Zip --- .gitlab-ci.yml | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2844d4a..3a277bc 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,19 +1,14 @@ -zip: +# Repository is private, so are the artifacts. +# However, if we can abuse the gitlab pages mechanism, we might be able to +# Link the zip still! +pages: stage: deploy script: - - echo "Script part cannot be empty." + - make zip + - mkdir public + - move thesis.zip public/ artifacts: - name: thesis paths: - - "*" - exclude: - - ".gitlab-ci.yml" - # See https://gitlab.com/gitlab-org/gitlab/-/issues/11091#note_790389715 - - ".git" - - ".git/*" - - ".git/*/*" - - ".git/*/*/*" - - ".git/*/*/*/*" - - ".git/*/*/*/*/*" + - public only: - master -- GitLab