Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 5cc71fd

Browse files
authoredOct 15, 2022
Merge pull request #129 from dmtucker/travis
Fix automatic release deployment
2 parents 7575b64 + c54d7b7 commit 5cc71fd

File tree

3 files changed

+19
-18
lines changed

3 files changed

+19
-18
lines changed
 

‎.github/workflows/publication.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Publication
2+
on:
3+
release:
4+
types: [created]
5+
jobs:
6+
deploy:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v3
10+
- uses: actions/setup-python@v4
11+
with:
12+
python-version: '3.8'
13+
- run: python -m pip install --upgrade tox-gh-actions
14+
- env:
15+
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
16+
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
17+
run: tox -e publish -- upload

‎.travis.yml

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

‎tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ testpaths = tests
8787
[testenv:publish]
8888
passenv = TWINE_*
8989
deps =
90-
build ~= 0.4.0
91-
twine ~= 3.4.0
90+
build ~= 0.8.0
91+
twine ~= 4.0.0
9292
commands =
9393
{envpython} -m build --outdir {distdir} .
9494
twine {posargs:check} {distdir}/*

0 commit comments

Comments
 (0)
Please sign in to comment.