Pypi Package #177
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pypi Package | |
on: | |
workflow_dispatch: | |
permissions: | |
contents: write | |
discussions: write | |
jobs: | |
release-publish: | |
uses: ./.github/workflows/release-binaries-on-ec2-all.yaml | |
secrets: inherit | |
python-publish: | |
needs: [release-publish] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.10' | |
- name: Build Python Package | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install --upgrade build setuptools wheel setuptools-scm | |
python -m build --wheel | |
- name: Publish Python Package | |
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 | |
with: | |
user: __token__ | |
password: ${{ secrets.PYPI_API_TOKEN }} |