Github actions for building
This commit is contained in:
parent
8fbf98466a
commit
0e4d886b3a
2 changed files with 21 additions and 0 deletions
3
.github/FUNDING.yml
vendored
Normal file
3
.github/FUNDING.yml
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# These are supported funding model platforms
|
||||
|
||||
github: ggozad
|
||||
18
.github/workflows/build-publish.yml
vendored
Normal file
18
.github/workflows/build-publish.yml
vendored
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
name: Build & publish to pypi
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up uv
|
||||
run: curl -LsSf https://astral.sh/uv/0.3.0/install.sh | sh
|
||||
- name: Set up Python 3.10
|
||||
run: uv python install 3.10
|
||||
- name: Build package
|
||||
run: uvx --from build pyproject-build --installer uv
|
||||
- name: Publish package
|
||||
run: uvx twine upload -u __token__ -p ${{ secrets.PYPI_API_TOKEN }} dist/* --non-interactive
|
||||
Loading…
Reference in a new issue