Skip to content

0.0.1rc1 - Test PyPI Publish Workflow #4

0.0.1rc1 - Test PyPI Publish Workflow

0.0.1rc1 - Test PyPI Publish Workflow #4

Workflow file for this run

name: Deploy Docs & Publish to PyPi
on:
release:
types: [published]
jobs:
deploy-docs:
permissions: write-all
uses: ./.github/workflows/deploy_docs.yml
publish-pypi:
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/eole
permissions: write-all
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install --upgrade build twine
- name: Build a binary wheel and a source tarball
run: |
python -m build
- name: Publish release to PyPi
uses: pypa/gh-action-pypi-publish@ec4db0b4ddc65acdf4bff5fa45ac92d78b56bdf0
with:
password: ${{ secrets.PYPI_API_TOKEN }}
verbose: true