Skip to content

Merge pull request #17 from emilcode-dev/dev/action-for-doc #3

Merge pull request #17 from emilcode-dev/dev/action-for-doc

Merge pull request #17 from emilcode-dev/dev/action-for-doc #3

name: Build and Deploy Docs

Check failure on line 1 in .github/workflows/build-and-publish-doc.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build-and-publish-doc.yml

Invalid workflow file

(Line: 19, Col: 5): Unexpected value 'contents', (Line: 19, Col: 5): Required property is missing: runs-on
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
build-and-test:
runs-on: ubuntu-latest
container:
image: ghcr.io/${{ github.repository_owner }}/embedded-lib-dev:latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Build Doxygen
run: doxygen Doxyfile
working-directory: ./doc
- name: Build Sphinx HTML
run: sphinx-build -b html ./source ./build
working-directory: ./doc
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: doc/build