Skip to content

Save and restore the critic's hidden state in compute_returns (#206) #42

Save and restore the critic's hidden state in compute_returns (#206)

Save and restore the critic's hidden state in compute_returns (#206) #42

Workflow file for this run

name: Docs
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install package and doc dependencies
run: |
python -m pip install --upgrade pip
pip install -e . --no-deps
pip install -r docs/requirements.txt
- name: Build Sphinx HTML
run: sphinx-build -b html docs docs/_build/html
- name: Upload Pages artifact
if: github.event_name != 'pull_request'
uses: actions/upload-pages-artifact@v3
with:
path: docs/_build/html
deploy:
if: github.event_name != 'pull_request'
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4