Skip to content

Merge pull request #110 from uPesy/dev #45

Merge pull request #110 from uPesy/dev

Merge pull request #110 from uPesy/dev #45

name: upload package to pypi
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
if: "!startsWith(github.event.head_commit.message, '[SKIP]')"
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
cache: pip
- 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/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}