Skip to content

Commit

Permalink
github: add publsh workflow (#57)
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Berendt <[email protected]>
  • Loading branch information
berendt authored Sep 4, 2023
1 parent 2b25366 commit 933f088
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
name: Publish

"on":
push:
tags:
- 'v*'

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/v}
- uses: actions/checkout@master
- uses: actions/setup-python@v4
with:
python-version: 3.9
- run: >-
python -m
pip install
build
--user
- run: >-
python -m
build
--sdist
--wheel
--outdir dist/
.
- uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 933f088

Please sign in to comment.