From 56feecfeffc2baf9a2c95700dc9fd8cbdc847b9e Mon Sep 17 00:00:00 2001 From: KKlochko Date: Sun, 16 Jul 2023 14:50:59 +0300 Subject: [PATCH] Add the CI/CD configuration. --- .drone.yaml | 30 ++++++++++++++++++++++++++++++ CHANGELOG.org | 2 ++ pyproject.toml | 2 +- 3 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 .drone.yaml diff --git a/.drone.yaml b/.drone.yaml new file mode 100644 index 0000000..6747c93 --- /dev/null +++ b/.drone.yaml @@ -0,0 +1,30 @@ +kind: pipeline +type: docker +name: default + +steps: +- name: build + image: python:3.10-alpine + commands: + - python3 -m pip install --upgrade pip + - pip3 install -r requirements.txt + - python3 -m pip install --upgrade build + - python3 -m build + when: + branch: + - main + +- name: publish + image: python:3.10-alpine + environment: + TWINE_USERNAME: + from_secret: PYPI_USERNAME + TWINE_PASSWORD: + from_secret: PYPI_PASSWORD + commands: + - python3 -m pip install --upgrade twine + - python3 -m twine upload dist/* + when: + branch: + - main + diff --git a/CHANGELOG.org b/CHANGELOG.org index 40f158a..5456a05 100644 --- a/CHANGELOG.org +++ b/CHANGELOG.org @@ -45,3 +45,5 @@ Add commands to execute the package. ** 1.2.1 <2023-07-16> Remove the README.org. +** 1.2.2 <2023-07-16> + Add the CI/CD configuration. diff --git a/pyproject.toml b/pyproject.toml index dca806e..afcd09d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "anitube-simple-notification" -version = "1.2.0" +version = "1.2.2" authors = [ { name="Kostiantyn Klochko", email="kklochko@protonmail.com" }, ]