forked from SAP-archive/fedem-docs
-
Notifications
You must be signed in to change notification settings - Fork 2
56 lines (45 loc) · 1.36 KB
/
build-docs.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
47
48
49
50
51
52
53
54
55
56
# SPDX-FileCopyrightText: 2023 SAP SE
#
# SPDX-License-Identifier: Apache-2.0
#
# This file is part of FEDEM - https://openfedem.org
name: Build documentation
on:
push:
tags:
- fedem-*
workflow_dispatch:
branches:
- main
jobs:
build-docs:
name: Build the docs
runs-on: windows-latest
steps:
- name: Install HTML Help Workshop
run: choco install html-help-workshop
- name: Install MiKTeX
run: choco install miktex
- name: Check out source repository
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.ACCESS_PAT }}
- name: Checkout the latest release tag
run: |
$last_tag = git tag | Select -Last 1
git config --global advice.detachedHead false
git checkout $last_tag
echo "MY_TAG=$last_tag" | Out-File -FilePath $env:GITHUB_ENV -Append
mkdir docs
- name: Compile chm and pdf documents
shell: cmd
run: make-docs.bat -install
- name: Create release
uses: ncipollo/release-action@v1
with:
tag: ${{ env.MY_TAG }}
name: "${{ env.MY_TAG }} docs"
token: ${{ secrets.ACCESS_PAT }}
body: "End-user documentation for Fedem R8.0"
artifacts: "docs/Fedem.chm,docs/FedemTheoryGuide.pdf,docs/FedemUsersGuide.pdf"