Skip to content

add ci-doc workflow

add ci-doc workflow #6

Workflow file for this run

# vim:sw=2:ts=2

Check failure on line 1 in .github/workflows/ci-doc.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci-doc.yml

Invalid workflow file

Invalid `steps` value - steps should be list of `uses` or `run` items
# build html version of docs, deploy on merge to docs.phoenix-rtos.com
name: ci-doc
# on events
on:
push:
branches:
- master
- 'feature/*'
pull_request:
branches:
- master
- 'feature/*'
jobs:
build-docs:
runs-on: ubuntu-latest
name: build
steps:
- uses: actions/checkout@v4
- uses: sphinx-doc/github-problem-matcher@master
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Build docs
run: |
make clean html SPHINXOPTS="-W --keep-going -n"
continue-on-error: false
- name: Upload build artifact
if: github.event_name == 'push'
uses: actions/upload-artifact@v4
with:
name: html_build
path: _build
if-no-files-found: error
deploy-docs:
runs-on: ubuntu-latest
name: deploy
needs: build
if: github.event_name == 'push'
steps:
run: |
echo "essa"
# steps:
# - name: Download build artifact
# uses: actions/download-artifact@v4
# with:
# name: html_build
# path: _build
# if-no-files-found: error
# - name: Deploy docs
# run: |
# send cmd