Skip to content

Resolve merge conflict in .github/workflows/publish.yml #9

Resolve merge conflict in .github/workflows/publish.yml

Resolve merge conflict in .github/workflows/publish.yml #9

Workflow file for this run

name: Publish Python distribution to PyPI
on:
push:
tags:
- 'v*'
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Check out the code
uses: actions/checkout@v3
- name: Set up Python environment
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel twine
- name: Install build tool
run: pip install build
- name: Build package
run: python -m build
- name: Publish to PyPI
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
twine upload dist/*