[pre-commit.ci] pre-commit autoupdate #211
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: | |
- master | |
- main | |
- develop | |
release: | |
types: | |
- published | |
jobs: | |
dist: | |
name: Distribution build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Build sdist and wheel | |
run: pipx run build | |
- uses: actions/upload-artifact@v2 | |
with: | |
path: dist | |
- name: Check products | |
run: pipx run twine check dist/* | |
- uses: pypa/[email protected] | |
if: github.event_name == 'release' && github.event.action == 'published' | |
with: | |
user: __token__ | |
# Remember to generate this and set it in "GitHub Secrets" | |
password: ${{ secrets.pypi_password }} |