Skip to content

Commit 1018fd6

Browse files
author
Thomas Rabaix
committed
feat(package): update package
1 parent 3f47159 commit 1018fd6

File tree

2 files changed

+8
-25
lines changed

2 files changed

+8
-25
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
name: Release
2-
3-
on:
4-
push:
5-
tags:
6-
- 'v*'
7-
- '[0-9]+.[0-9]+.[0-9]+'
1+
name: Test Package
82

93
jobs:
104
test:
@@ -34,20 +28,4 @@ jobs:
3428
- name: Check package
3529
run: |
3630
twine check dist/*
37-
38-
- name: Publish to Test PyPI
39-
env:
40-
TWINE_USERNAME: __token__
41-
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_API_TOKEN }}
42-
run: |
43-
twine upload --repository testpypi dist/*
44-
if: env.TWINE_PASSWORD != ''
45-
continue-on-error: true
46-
47-
- name: Publish to PyPI
48-
env:
49-
TWINE_USERNAME: __token__
50-
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
51-
run: |
52-
twine upload dist/*
53-
if: env.TWINE_PASSWORD != '' && startsWith(github.ref, 'refs/tags/')
31+

Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
all: build upload
22

33
build:
4+
pip install build twine
45
python -m build
6+
twine check dist/*
57

6-
upload:
8+
upload-prod: build
79
python -m twine upload dist/*
810

11+
upload-test: build
12+
python -m twine --repository testpypi upload dist/*
13+
914
clean:
1015
rm -rf build/ dist/ *.egg-info/ __pycache__/ .pytest_cache/ .mypy_cache/
1116
find . -type f -name "*.pyc" -delete

0 commit comments

Comments
 (0)