From f9a3f89801ec82839d2efc4c5bfaf83482e52fce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?c=C4=83t=C4=83lin?= Date: Fri, 12 Aug 2022 21:57:54 +0200 Subject: [PATCH] ci: add deploy job --- .drone.yml | 12 ++++++++++++ pyproject.toml | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 79568cf..b7de5ba 100644 --- a/.drone.yml +++ b/.drone.yml @@ -44,6 +44,18 @@ steps: commands: - .venv/bin/pre-commit run --all-files --color always +- name: deploy + pull: true + image: git.roboces.dev/catalin/poetry:beta + commands: + - poetry build + - poetry config repositories.roboces https://git.roboces.dev/api/packages/catalin/pypi + - poery config http-basic.roboces "$REGISTRY_USERNAME" "$REGISTRY_PASSWORD" + - poetry publish --repository roboces + when: + ref: + - refs/tags/v* + - name: rebuild cache image: meltwater/drone-cache pull: true diff --git a/pyproject.toml b/pyproject.toml index 0009ce8..9d3927e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "halig" -version = "0.1.0" +version = "0.1.1" description = "" authors = ["cătălin "] readme = "README.md"