Skip to content

Update pypi-publish.yml #3

Update pypi-publish.yml

Update pypi-publish.yml #3

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Publish to PyPI
on:
push:
tags: "*"
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:

Check failure on line 16 in .github/workflows/pypi-publish.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/pypi-publish.yml

Invalid workflow file

You have an error in your yaml syntax on line 16
python-version: '3.10'
- name: Install dependencies
run: >-
pip install --upgrade pip
pip install -r docs/requirements.txt
- name: Sphinx build
run: |
sphinx-build docs _build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: _build/
force_orphan: true
# UNCOMMENT LATER TO PUBLISH TO PYPI
# - name: Publish package
# uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
# with:
# user: __token__
# password: ${{ secrets.PYPI_PASSWORD }}