summaryrefslogtreecommitdiff
path: root/.github/workflows/manpages.yml
blob: ae665237079b1c871361eca129e0169e0862d7a8 (plain)
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
name: Generate man pages

on:
  push:
    paths:
      - "Base/usr/share/man/**"
      - "Meta/Websites/man.serenityos.org/**"

jobs:
  convert_using_pandoc:
    runs-on: ubuntu-22.04
    if: always() && github.repository == 'SerenityOS/serenity' && github.ref == 'refs/heads/master'
    steps:
      - uses: actions/checkout@v3
      - uses: r-lib/actions/setup-pandoc@v2
        with:
          pandoc-version: '2.13'
      - name: Actually build website
        run: ./Meta/build-manpages-website.sh
      - name: Deploy to GitHub pages
        uses: JamesIves/github-pages-deploy-action@v4.4.1
        with:
          git-config-name: BuggieBot
          git-config-email: buggiebot@serenityos.org
          branch: master
          repository-name: SerenityOS/manpages-website
          token: ${{ secrets.BUGGIEBOT_TOKEN }}
          folder: output