Skip to content

Commit

Permalink
Use in house pypi publisher for CICD
Browse files Browse the repository at this point in the history
  • Loading branch information
dormant-user committed Jun 23, 2024
1 parent b022057 commit 40986d5
Showing 1 changed file with 6 additions and 21 deletions.
27 changes: 6 additions & 21 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,14 @@
name: pypi-publish

on:
workflow_dispatch:
release:
types: [ published ]
workflow_dispatch:

jobs:
deploy:
runs-on: self-hosted
pypi-publisher:
runs-on: thevickypedia-lite
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
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 40986d5

Please sign in to comment.