StupidOS/.github/workflows/doc.yml

43 lines
847 B
YAML

name: Docs
on:
push:
branches: ["master"]
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
docs-deploy:
runs-on: ubuntu-latest
environment:
name: github-page
url: ${{ steps.deployement.outputs.page_url }}
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install build-essential naturaldocs
- name: generate-docs
run: |
make docs
- name: setup-pages
uses: actions/configure-pages@v4
- name: upload-artifact
uses: actions/upload-pages-artifact@v3
with:
path: './docs/html'
- name: deploy-github-page
id: deployment
uses: actions/deploy-pages@v4