Deploy Docs & Publish to PyPi #1
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: Deploy Docs & Publish to PyPi | ||
on: | ||
release: | ||
types: [published] | ||
jobs: | ||
deploy-docs: | ||
Check failure on line 8 in .github/workflows/release.yml GitHub Actions / Deploy Docs & Publish to PyPiInvalid workflow file
Check failure on line 8 in .github/workflows/release.yml GitHub Actions / Deploy Docs & Publish to PyPiInvalid workflow file
|
||
uses: ./.github/workflows/deploy_docs.yml | ||
publish-pypi: | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: pypi | ||
url: https://pypi.org/p/eole | ||
permissions: | ||
id-token: write | ||
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 |