Skip to content

Commit 697c4ac

Browse files
jeremjeremad
authored andcommitted
feat(ci): deploy on tags
1 parent c6d3027 commit 697c4ac

7 files changed

Lines changed: 203 additions & 95 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Deploy
2+
on:
3+
push:
4+
tags:
5+
- 'v*'
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-20.04
10+
steps:
11+
- uses: actions/checkout@v1
12+
- name: Set up Python
13+
uses: actions/setup-python@v1
14+
with:
15+
python-version: 3.6
16+
- name: Install and configure poetry
17+
run: python -m pip install poetry
18+
- name: Install python packages
19+
run: python -m poetry install
20+
- name: Bump files
21+
run: python -m poetry run python run-ci.py bump --git-tag "$(git describe --tags)"
22+
- name: Build
23+
run: python -m poetry build
24+
- name: Auth
25+
run: python -m poetry config pypi-token.pypi "${PYPI_API_TOKEN}"
26+
env:
27+
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
28+
- name: Publish
29+
run: python -m poetry publish

Changelog.rst

Lines changed: 0 additions & 67 deletions
This file was deleted.

poetry.lock

Lines changed: 122 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

publish.sh

Lines changed: 0 additions & 9 deletions
This file was deleted.

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "tankersdk-identity"
3-
version = "3.0.0"
3+
version = "0.0.0"
44
description = "Tanker identity library"
55
authors = ["Tanker team <tech@tanker.io>"]
66
homepage = "https://github.com/TankerHQ/identity-python"
@@ -17,6 +17,7 @@ pytest = "6.2.4"
1717
pytest-cov = "2.12.1"
1818
mypy = "0.910"
1919
safety = "1.10.3"
20+
tbump = "6.3.2"
2021

2122
[build-system]
2223
requires = ["poetry>=0.12"]

0 commit comments

Comments
 (0)