Skip to content

Commit

Permalink
📝 add workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
H2Sxxa committed Mar 15, 2024
1 parent 13cdc5d commit 7071144
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# This workflows will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries

name: PYPI Publish

on:
release:
types: [created]

jobs:
pypi-publish:
name: Test Lib & Publish
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@v3
- uses: pdm-project/setup-pdm@v3
with:
version: 'head'
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.11'
- name: Setup & Publish Lib
run: |
pdm install -G all
- name: Publish package distributions to PyPI
run: pdm publish
2 changes: 1 addition & 1 deletion tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
from . import intercept as intercept
import intercept as intercept

0 comments on commit 7071144

Please sign in to comment.