Skip to content

Commit

Permalink
CI: Run build and check on all pushes/PRs to master
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Oct 13, 2023
1 parent 4a09a82 commit 7d6de65
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/pythonpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
name: Upload Python Package

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
release:
types: [created]

Expand All @@ -15,12 +19,13 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- name: Build
- name: Build and check package
run: |
pipx run build
pipx run twine check dist/*
- name: Upload to PyPI
run: pipx run twine upload dist/*
if: ${{ github.event_name == 'release' }}
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}

0 comments on commit 7d6de65

Please sign in to comment.