File: gh-pages.yml

package info (click to toggle)
python-crc 7.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 468 kB
  • sloc: python: 1,488; makefile: 5
file content (30 lines) | stat: -rw-r--r-- 755 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Publish Documentation

on: workflow_call

jobs:

  documentation-job:
    runs-on: ubuntu-latest

    steps:
      - name: SCM Checkout
        uses: actions/checkout@v4

      - name: Setup Python & Poetry Environment
        uses: ./.github/actions/python-environment
        with:
          python-version: "3.10"

      - name: Build Documentation
        run: |
          poetry run mkdocs build -c -s -d ../.html-documentation -f docs/mkdocs.yml
          touch .html-documentation/.nojekyll

      - name: Deploy
        uses: JamesIves/github-pages-deploy-action@v4.6.8
        with:
          branch: gh-pages
          folder: .html-documentation
          git-config-name: Github Action
          git-config-email: nico.coretti@gmail.com