File: deploys-docs.yml

package info (click to toggle)
libjwt3 3.2.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,860 kB
  • sloc: ansic: 8,651; xml: 253; javascript: 187; sh: 45; makefile: 14; ruby: 11
file content (68 lines) | stat: -rw-r--r-- 1,467 bytes parent folder | download
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: LibJWT Documentation

on:
  workflow_dispatch:
  push:
    branches:
      - "master"
    tags:
      - v*
    paths:
      - include/jwt.h
      - doxygen/**
      - cmake/LibJWTDoxyfile.cmake

jobs:
  build:
    if: ${{github.ref == 'refs/heads/master'}}
    runs-on: macos-latest
    steps:
    - uses: actions/checkout@v4
      with:
        fetch-tags: true
        fetch-depth: 0
    - uses: ConorMacBride/install-package@v1
      with:
        brew: openssl@3 jansson pkgconf cmake doxygen graphviz autoconf automake libtool

    - name: Build Head docs
      run: |
        set -e
        cmake -B build
        make -C build doxygen-doc
        mv build/doxygen-doc/html gh-pages
        rm -rf build

    - name: Build v2 release docs
      run: |
        set -e
        git checkout v2.1.1
        autoreconf -fi
        mkdir build
        cd build
        ../configure
        make doxygen-doc
        cd ..
        mv build/doxygen-doc/html gh-pages/stable
        rm -rf build

    - name: Upload pages
      id: deployment
      uses: actions/upload-pages-artifact@v3
      with:
        path: gh-pages/

  deploy:
    permissions:
      id-token: write
      pages: write
      deployments: write
    environment:
      name: github-pages
      url: ${{ steps.deployment.outputs.page_url }}
    runs-on: ubuntu-latest
    needs: build
    steps:
      - name: Deploy to GitHub Pages
        id: deployment
        uses: actions/deploy-pages@v4