Drop Python 3.8 (#105) #27
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: Build dist | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
release: | |
types: [published] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install Hatch | |
run: pipx install hatch | |
- name: Build dist | |
run: hatch build | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: swn-build | |
path: dist/* | |
- name: Publish on PyPI | |
if: github.event_name == 'release' && github.event.action == 'published' | |
run: hatch publish |