Skip to content

Commit

Permalink
Use in-house pypi-publisher in GH action
Browse files Browse the repository at this point in the history
  • Loading branch information
dormant-user committed May 19, 2024
1 parent ca31259 commit ea0e735
Showing 1 changed file with 6 additions and 23 deletions.
29 changes: 6 additions & 23 deletions .github/workflows/pythonpublish.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# This workflow will upload a Python Package using Twine when a release is created

name: pypi-publish
name: Pypi Publisher

# Controls when the workflow will run
on:
Expand All @@ -9,24 +7,9 @@ on:
types: [ published ]

jobs:
deploy:
runs-on: self-hosted
pypi-publisher:
runs-on: thevickypedia-default
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build twine
- name: Create packages
run: python -m build
- name: Run twine check
run: twine check dist/*
- name: Upload to pypi
env:
TWINE_USERNAME: ${{ secrets.PYPI_USER }}
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: twine upload dist/*.whl
- uses: thevickypedia/pypi-publisher@v3
env:
token: ${{ secrets.PYPI_TOKEN }}

0 comments on commit ea0e735

Please sign in to comment.