Skip to content

Commit

Permalink
ci: pip publish (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
QiE2035 authored May 4, 2024
1 parent 2fef850 commit 134f517
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/pip_publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: pip publish

on:
release:
types: [published]

permissions:
contents: read

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.9'
- name: Install pdm and publish
run: |
python -m pip install --upgrade pip
pip install pdm
pdm publish --password ${{ secrets.PYPI_TOKEN }}

0 comments on commit 134f517

Please sign in to comment.