Skip to content

Commit

Permalink
Add build CI (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxbro authored Aug 28, 2023
1 parent 939f69d commit e3932ab
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Build and Publish

on:
workflow_dispatch:
pull_request:
release:
types:
- published

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install hatch
run: pipx install hatch
- name: Build sdist and wheel
run: hatch build --clean
- name: Publish
if: github.event_name == 'release' && github.event.action == 'published'
run: hatch publish --user __token__ --auth ${{ secrets.pypi_password }}

0 comments on commit e3932ab

Please sign in to comment.