awesome-slot/.github/workflows/doc.yaml

41 lines
853 B
YAML
Raw Normal View History

name: Build doc
on:
push:
branches: [$default-branch]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
# Cancel the previous run if it's still in progress
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Generate docs with LDoc
uses: lunarmodules/ldoc@v1.5.0
- name: Upload static files as artifact
id: deployment
uses: actions/upload-pages-artifact@v3
with:
path: doc/
deploy:
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