Skip to content

Commit

Permalink
- set up publishToPyPI Action
Browse files Browse the repository at this point in the history
  • Loading branch information
HUISUN24 authored Nov 15, 2023
1 parent 75b9fa5 commit a3ede44
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/publishToPyPI.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Upload to PyPI

on:
push:
tags:
- '**'
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
cache: 'pip'
cache-dependency-path: 'pyproject.toml'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build

- name: Publish package
uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit a3ede44

Please sign in to comment.