Skip to content

Commit

Permalink
auto release pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Nov 15, 2023
1 parent c3644ad commit 1ee3ab4
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/publish-python-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: publish

on:
release:
types: [published]

jobs:
release:
runs-on: ubuntu-latest
steps:

- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: Update pip
run: pip install -U pip

- name: Install builder
run: pip install build

- name: Build package
run: pyproject-build --outdir dist/ .

- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 1ee3ab4

Please sign in to comment.