Skip to content

Commit

Permalink
Update pythonpublish.yaml (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbusecke authored May 26, 2021
1 parent 7e24584 commit a313061
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/pythonpublish.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

name: Upload Python Package

on:
Expand All @@ -6,21 +7,24 @@ on:

jobs:
deploy:
if: github.repository == 'jbusecke/xmovie'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/[email protected]
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools setuptools-scm wheel twine
pip install setuptools setuptools-scm wheel twine toml
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
python setup.py --version
twine check dist/*
twine upload dist/*

0 comments on commit a313061

Please sign in to comment.