Skip to content

Commit

Permalink
fix: use twine
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewtrotter committed Sep 5, 2022
1 parent d38c969 commit 0c44d91
Showing 1 changed file with 11 additions and 14 deletions.
25 changes: 11 additions & 14 deletions .github/workflows/python-lib.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,18 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest wheel python-semantic-release
pip install build pytest wheel python-semantic-release
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Test with pytest
run: |
pytest test.py
- name: Python Semantic Release
uses: relekang/python-semantic-release@master
with:
github_token: ${{ secrets.GH_TOKEN }}
repository_username: __token__
repository_password: ${{ secrets.PYPI_TOKEN }}
# - name: Publish to PyPi
# env:
# TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
# TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
# run: |
# python -m build
# python -m twine upload --repository testpypi dist/*
- name: Tag release
run: semantic-release version
- name: Build artifacts
run: python -m build
- name: Push to PyPi
run: python3 -m twine upload --repository testpypi dist/*
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
TWINE_REPOSITORY_URL: https://test.pypi.org/project/assetuniverse/

0 comments on commit 0c44d91

Please sign in to comment.