Skip to content

Deploy Docs & Publish to PyPi #1

Deploy Docs & Publish to PyPi

Deploy Docs & Publish to PyPi #1

Workflow file for this run

name: Deploy Docs & Publish to PyPi
on:
release:
types: [published]
jobs:
deploy-docs:

Check failure on line 8 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / Deploy Docs & Publish to PyPi

Invalid workflow file

The workflow is not valid. .github/workflows/release.yml (Line: 8, Col: 3): Error calling workflow 'eole-nlp/eole/.github/workflows/deploy_docs.yml@ef7919b91f7b1f179d6c703690cfabdc7a95b8c1'. The nested job 'build_and_deploy_docs' is requesting 'actions: write, attestations: write, checks: write, contents: write, deployments: write, discussions: write, issues: write, packages: write, pages: write, pull-requests: write, repository-projects: write, statuses: write, security-events: write, id-token: write', but is only allowe[...]

Check failure on line 8 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / Deploy Docs & Publish to PyPi

Invalid workflow file

The workflow is not valid. .github/workflows/release.yml (Line: 8, Col: 3): Error calling workflow 'eole-nlp/eole/.github/workflows/deploy_docs.yml@ef7919b91f7b1f179d6c703690cfabdc7a95b8c1'. The nested job 'build_and_deploy_docs' is requesting 'actions: write, attestations: write, checks: write, contents: write, deployments: write, discussions: write, issues: write, packages: write, pages: write, pull-requests: write, repository-projects: write, statuses: write, security-events: write, id-token: write', but is only allowe[...]
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