forked from fossology/fossology
-
Notifications
You must be signed in to change notification settings - Fork 6
46 lines (38 loc) · 1.18 KB
/
deploy-pages.yml
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
# SPDX-FileCopyrightText: © 2021 Avinal Kumar <[email protected]>
# SPDX-License-Identifier: GPL-2.0-only AND LGPL-2.1-only
name: GitHub Pages Deploy
on:
push:
branches:
- master
release:
types:
- published
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install --no-install-recommends -y git doxygen graphviz
- uses: actions/checkout@v3
with:
fetch-depth: 50
- name: Execute docs generation
run: |
chmod +x utils/deploy-pages.sh
bash utils/deploy-pages.sh
env:
GH_REPO_REF: ${{ secrets.GH_REPO_REF }}
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
personal_token: ${{ secrets.GH_TOKEN }}
external_repository: ${{ secrets.GH_REPO_REF }}
publish_branch: master
publish_dir: ./code_docs
force_orphan: true
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
full_commit_message: ${{ github.event.head_commit.message }}