Skip to content

Commit 57d693f

Browse files
authored
Merge pull request #2 from SAnCherepan/ci-updates
Added CI for publishing to TestPyPI
2 parents a128f65 + ab21393 commit 57d693f

2 files changed

Lines changed: 39 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
tags: [ "*" ]
7+
pull_request:
8+
branches: [ "main" ]
9+
10+
jobs:
11+
deploy-pypi:
12+
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v3
17+
18+
- name: Set up Python
19+
uses: actions/setup-python@v3
20+
with:
21+
python-version: '3.11'
22+
23+
- name: Install dependencies
24+
run: |
25+
python -m pip install --upgrade pip
26+
pip install build
27+
pip install -r requirements.txt
28+
29+
- name: Build package
30+
run: python -m build
31+
32+
- name: Publish package
33+
if: github.ref_type == 'tag'
34+
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
35+
with:
36+
user: __token__
37+
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
38+
repository_url: https://test.pypi.org/legacy/

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "repo_reader_sancherepan"
7-
version = "0.2.0"
7+
version = "0.2.1"
88
authors = [
99
{ name="SAnCherepan", email="sivkinpunk@gmail.com" },
1010
]

0 commit comments

Comments
 (0)