From 937a9e4ec0e041436ccd6924ab03d0e8e3842c9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= <git@maximilian-kessler.de> Date: Sun, 24 Oct 2021 09:12:51 +0200 Subject: [PATCH] deploy --- .ci/ci_build.sh | 7 +++++-- .gitlab-ci.yml | 5 ----- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.ci/ci_build.sh b/.ci/ci_build.sh index 77f3c60..29413a5 100755 --- a/.ci/ci_build.sh +++ b/.ci/ci_build.sh @@ -3,6 +3,9 @@ export COMMIT_MSG=$(python3 print_deploy_message.py) cd .. make ci-build cd build -zip -r LatexPackages.zip LatexPackagesBuild +zip -r LatexPackages.zip LatexPackagesBuild -x LatexPackagesBuild.git tree -H '.' -I "index.html" -D --charset utf-8 -T "LatexPackages" > index.html -cd .. +cd LatexPackagesBuild +git add . +git commit -m ${COMMIT_MSG} || echo "Nothing new to commit" +git push diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0d869e8..9be0036 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -48,12 +48,7 @@ build-packages: # This job runs in the deploy stage. - git config --global user.name "Maximilian Keßler (via gitlab runner)" script: - echo "Building packages incrementally..." - - test -d PyTeX/build - .ci/ci_build.sh - - cd build/LatexPackagesBuild - - echo "$PWD" - - git add . - - git commit -m "${COMMIT_MESSAGE}" || echo "Nothing to commit, working dir clean" variables: GIT_SUBMODULE_STRATEGY: recursive artifacts: