Skip to content

Merge pull request #1 from happer64bit/dev #7

Merge pull request #1 from happer64bit/dev

Merge pull request #1 from happer64bit/dev #7

Workflow file for this run

name: Publish to PyPI
on:
push:
branches:
- main
jobs:
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.8' # or any version you need
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build twine
- name: Build distribution
run: |
python -m build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}