Skip to content

Commit

Permalink
Create pypi-to-upload.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
realshouzy authored Sep 3, 2023
1 parent 7d9bd4d commit ab13066
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/pypi-to-upload.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: pypi-to-upload

on:
release:
types: [published]

permissions:
contents: read

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install -U pip setuptools wheel build
- name: Build package
run: python -m build -s -w
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit ab13066

Please sign in to comment.