Skip to content

Partners block

Partners block #1439

name: headless-lms docs
on:
push:
branches:
- master
pull_request:
branches:
- master
concurrency:
# New commits cancel previous builds only on pull requests. This is because `github.head_ref`` is only set on pull requests and `github.sha`` is unique for each commit.
group: headless-lms-doc-${{ github.head_ref || github.sha }}
cancel-in-progress: true
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Update rust to get edition 2021 support
run: rustup update stable
- name: Run npm ci
run: npm ci && git config --unset core.hooksPath
- name: Generate doc files
run: |
bin/generate-doc-files
npm run eslint:format-generated-docs
- name: Generate documentaion
run: cargo doc --document-private-items
working-directory: services/headless-lms
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
folder: services/headless-lms/target/doc
if: ${{ github.ref == 'refs/heads/master' }}