Skip to content

Build and upload docs in CI #1

Build and upload docs in CI

Build and upload docs in CI #1

Workflow file for this run

name: Upload documentation

Check failure on line 1 in .github/workflows/upload-docs.yml

View workflow run for this annotation

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

Invalid workflow file

`tags` is not a valid event name
on:
tags:
workflow_dispatch:
push:
branches:
- main
jobs:
build:
if: github.repository_owner == 'Qiskit'
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
name: Install Python
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r ./requirements-dev.txt
- name: Build documentation
run: python -m sphinx -W --keep-going docs/ docs/_build
- name: Store built documentation artifact
uses: actions/upload-artifact@v4
with:
name: qst-docs
path: |
./docs/_build/*
!**/.doctrees
!**/.buildinfo
if-no-files-found: error