aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2020-11-18 13:21:38 +0100
committerjaseg <git@jaseg.de>2020-11-18 13:21:38 +0100
commit0a678f936b569bbc2dc36c745bb966bc3cee061e (patch)
treee7a8ad40ac56d86082f39a130fe7b7b2a50d986c /.gitlab-ci.yml
parent43d49d978ea441e0987eda471ba5744a74ee3c79 (diff)
downloadstm32square-0a678f936b569bbc2dc36c745bb966bc3cee061e.tar.gz
stm32square-0a678f936b569bbc2dc36c745bb966bc3cee061e.tar.bz2
stm32square-0a678f936b569bbc2dc36c745bb966bc3cee061e.zip
Add auto-release infrastructure
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml20
1 files changed, 20 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..0896758
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,20 @@
+stages:
+ - build
+ - release
+
+on-schedule:
+ stage: build
+ image: python3
+ only:
+ - schedules
+ script:
+ - sh tools/do_release.sh
+
+release:
+ stage: release
+ image: python3
+ script:
+ - pip3 install gitlab-release
+ - gitlab-release --zip "release-${CI_COMMIT_TAG}.zip" *
+ only:
+ - tags