diff options
| author | Adam Janovsky | 2021-04-24 12:44:51 +0200 |
|---|---|---|
| committer | Adam Janovsky | 2021-04-24 12:44:51 +0200 |
| commit | cb02c5a6b48cd9b71a0f5a23925bcb8f6b036d66 (patch) | |
| tree | 2ea6f64cd7472ffd1bc1bec94cf3e9fa5ccc9618 /.github/workflows/python-publish.yml | |
| parent | 56ac88fbe875f1518cab5d1d607eb1b5e2f38013 (diff) | |
| download | sec-certs-cb02c5a6b48cd9b71a0f5a23925bcb8f6b036d66.tar.gz sec-certs-cb02c5a6b48cd9b71a0f5a23925bcb8f6b036d66.tar.zst sec-certs-cb02c5a6b48cd9b71a0f5a23925bcb8f6b036d66.zip | |
add badges, workflow dispatch on publish
Diffstat (limited to '.github/workflows/python-publish.yml')
| -rw-r--r-- | .github/workflows/python-publish.yml | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 22f85fe2..2fab292d 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -3,31 +3,31 @@ name: Upload Python Package -on: +on: push: - branches: [ master ] + branches: [master] pull_request: - branches: [ master ] + branches: [master] + workflow_dispatch: jobs: deploy: - runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Set up Python - uses: actions/setup-python@v2 - with: - python-version: '3.8' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install setuptools wheel twine - - name: Build and publish - env: - TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} #Same as Docker, need to add an account in the secrets - TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} - run: | - python setup.py sdist bdist_wheel - twine upload dist/* + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: "3.8" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install setuptools wheel twine + - name: Build and publish + env: + TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} #Same as Docker, need to add an account in the secrets + TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + run: | + python setup.py sdist bdist_wheel + twine upload dist/* |
