From ad466a22d73eebf0e9c96965ee5c4e1d67f14971 Mon Sep 17 00:00:00 2001
From: Georgiy Eterevskiy <goshik_e@mail.ru>
Date: Tue, 22 Mar 2022 14:09:25 +0300
Subject: [PATCH] Add gitlab-ci config

---
 .gitlab-ci.yml | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
 create mode 100644 .gitlab-ci.yml

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..04a9692
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,27 @@
+image: python:3.8-alpine
+
+stages:
+  - upload
+
+.upload:
+  stage: upload
+  variables:
+    PYPI_PASSWORD: $PYPI_PASSWORD
+  script:
+    - apk add bash make gcc g++ linux-headers musl-dev
+    - make release
+    - echo "Job \"$CI_JOB_STAGE\" was successful!"
+
+upload-develop:
+  extends: .upload
+  variables:
+    PYPI_REPO: https://pypi.perx.ru/root/develop
+  only:
+    - master
+
+upload-production:
+  extends: .upload
+  variables:
+    PYPI_REPO: https://pypi.perx.ru/root/master
+  only:
+    - tags
-- 
GitLab