Skip to content

Commit dc79707

Browse files
authored
Merge pull request #46 from lucasimi/develop
Develop
2 parents 15e0b71 + 517d66a commit dc79707

File tree

2 files changed

+31
-6
lines changed

2 files changed

+31
-6
lines changed

.github/workflows/deploy-test.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: deploy-test
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v[0-9]+.[0-9]+.[0-9]+'
7+
8+
jobs:
9+
deploy-job:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Check out repository code
13+
uses: actions/checkout@v2
14+
- name: Install Python
15+
uses: actions/setup-python@v4
16+
with:
17+
python-version: '3.10'
18+
- name: Install dependencies
19+
run: |
20+
python -m pip install twine build
21+
python -m pip install -e .
22+
- name: Build package
23+
run: |
24+
python -m build
25+
python -m twine check dist/*
26+
- name: Upload package to TestPyPI
27+
run: |
28+
python -m twine upload -r testpypi dist/* --verbose
29+
env:
30+
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME_TEST }}
31+
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD_TEST }}

.github/workflows/deploy.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,6 @@ jobs:
2323
run: |
2424
python -m build
2525
python -m twine check dist/*
26-
- name: Upload package to TestPyPI
27-
run: |
28-
python -m twine upload -r testpypi dist/* --verbose
29-
env:
30-
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME_TEST }}
31-
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD_TEST }}
3226
- name: Upload package to PyPI
3327
run: |
3428
python -m twine upload -r pypi dist/* --verbose

0 commit comments

Comments
 (0)