Skip to content

Commit

Permalink
Add CI publish to PyPI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nunofachada committed Jan 27, 2023
1 parent 68d3d4e commit c21a22f
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Publish

on:
push:
tags: 'v*'

jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout package
uses: actions/checkout@v3
- name: Install build and publish dependencies
run: |
pip3 install --upgrade build
- name: Build package
run: |
python3 -m build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit c21a22f

Please sign in to comment.