Skip to content

Commit

Permalink
Switch Windows and MacOS to manual twine upload
Browse files Browse the repository at this point in the history
  • Loading branch information
gmrukwa committed Dec 29, 2019
1 parent 15fbbad commit ad49200
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ jobs:
matrix:
python-version: [ '3.5', '3.6', '3.7', '3.8' ]
name: Python ${{ matrix.python-version }} Windows build
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}

steps:
- name: Checkout
Expand All @@ -115,16 +118,13 @@ jobs:
isBeta: ${{ env.IS_BETA }}
version: ${{ env.MAJOR }}.${{ env.MINOR }}.${{ env.FIXUP }}
- name: Install build dependencies
run: pip install wheel
run: pip install wheel twine
- name: Install dependencies
run: pip install -r requirements-base.txt
- name: Build Python package
run: pip wheel . -w dist
- name: Publish Python package
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
run: twine upload dist/*

push_macos_pypi_package:

Expand All @@ -135,6 +135,9 @@ jobs:
matrix:
python-version: [ '3.5', '3.6', '3.7', '3.8' ]
name: Python ${{ matrix.python-version }} MacOS build
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}

steps:
- name: Checkout
Expand All @@ -151,13 +154,10 @@ jobs:
isBeta: ${{ env.IS_BETA }}
version: ${{ env.MAJOR }}.${{ env.MINOR }}.${{ env.FIXUP }}
- name: Install build dependencies
run: pip install wheel
run: pip install wheel twine
- name: Install dependencies
run: pip install -r requirements-base.txt
- name: Build Python package
run: pip wheel . -w dist
- name: Publish Python package
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
run: twine upload dist/*

0 comments on commit ad49200

Please sign in to comment.