File: mkdocs-gh-pages.yaml

package info (click to toggle)
reflect-cpp 0.21.0%2Bds-2.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,140 kB
  • sloc: cpp: 50,336; python: 139; makefile: 29; sh: 3
file content (47 lines) | stat: -rw-r--r-- 1,022 bytes parent folder | download | duplicates (2)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Deploy MkDocs documentation

on:
  push:
    branches: 
      - main
      - f/mkdocs
  workflow_dispatch:

jobs:
  deploy:
    runs-on: ubuntu-latest
    env:
      GH_C17_DEV_TOKEN: ${{ secrets.GH_C17_DEV_TOKEN }}
      ENABLED_HTMLPROOFER: ${{ vars.ENABLED_HTMLPROOFER || 'False' }}
    steps:
      - name: Checkout reflect-cpp repo
        uses: actions/checkout@v4

      - name: Set up Python
        uses: actions/setup-python@v5
        with:
          python-version: 3.12

      - name: Install Hatch
        uses: pypa/hatch@install
        with:
          version: 1.12.0

      - name: Set git credentials
        run: |
          git config --global user.name "${{ github.actor }}"
          git config --global user.email "${{ github.actor }}@users.noreply.github.com"

      - name: Fetch latest commit from gh-pages
        run: |
          git fetch origin gh-pages --depth=1

      - name: Deploy MkDocs documentation
        run: hatch run insiders:mkdocs gh-deploy