Skip to content

Commit

Permalink
add pypi-publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
GreyElaina committed Jun 24, 2022
1 parent 1266d7c commit 4317cac
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Python package
on:
push:
tags:
- "v*.*.*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v3
name: Ensure Python Runtime
with:
python-version: '3.x'
architecture: 'x64'
- name: Ensure PDM & twine
run: |
python3 -m pip install pdm twine
- name: Build Package
run: |
pdm build
- name: Publish to PyPI
run: |
twine upload dist/* --non-interactive -u __token__ -p ${{ secrets.PYPI_TOKEN }}

0 comments on commit 4317cac

Please sign in to comment.