Skip to content

ci: fix secret passing #11

ci: fix secret passing

ci: fix secret passing #11

Workflow file for this run

name: build-docs
on:
workflow_call:
secrets:
GITHUB_TOKEN:

Check failure on line 5 in .github/workflows/build-docs.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build-docs.yml

Invalid workflow file

secret name `GITHUB_TOKEN` within `workflow_call` can not be used since it would collide with system reserved name
required: true
push:
branches:
- prod
jobs:
build-docs:
runs-on: ubuntu-20.04
steps:
- name: Git checkout
uses: actions/checkout@v2
- name: Setup Python env
uses: actions/setup-python@v2
with:
python-version: "3.9"
- name: Install Poetry
run: |
pip install poetry==1.5.1
poetry config virtualenvs.create false
- name: Install autodisc-server-libs dependencies
working-directory: ./services/base/AutoDiscServer/libs
run: poetry install --with docs
- name: Generate doc
run: >
pdoc
--docformat google
--logo https://flowers.inria.fr/wp/wp-content/uploads/2013/07/ErgoRobotFondationCartier.jpg.jpg
--favicon https://flowers.inria.fr/wp/wp-content/uploads/2013/07/ErgoRobotFondationCartier.jpg.jpg
--output-dir ./docs/adtool
./services/base/AutoDiscServer/libs/auto_disc
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/adtool