forked from XCSoar/XCSoar
-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (47 loc) · 1.19 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
---
on:
workflow_dispatch:
push:
paths:
- 'doc/**'
- '.github/workflows/build-docs.yml'
branches:
- master
pull_request:
paths:
- 'doc/**'
- '.github/workflows/build-docs.yml'
branches:
- master
env:
TARGET: manual
TARGET_FINAL: XCSoar-docs
TARGET_EXT: pdf
jobs:
xcsoar-compile:
runs-on: ubuntu-latest
steps:
- id: checkout
uses: actions/checkout@v3
with:
submodules: false
- id: repository
uses: ASzc/change-string-case-action@v1
with:
string: ${{ github.repository }}
- name: find githash
run: |
echo "git_hash=$(git rev-parse --short $GITHUB_SHA)" >> $GITHUB_ENV
- name: XCSoar generate Docs
uses: addnab/docker-run-action@v3
with:
image: ghcr.io/${{ steps.repository.outputs.lowercase }}/xcsoar-build:latest
options: -v ${{ github.workspace }}:/opt/xcsoar
run: |
cd /opt/xcsoar
make manual V=2
- name: upload artifact
uses: actions/upload-artifact@v3
with:
name: ${{ env.TARGET_FINAL }}-${{ env.git_hash }}
path: output/${{ env.TARGET }}/*.${{ env.TARGET_EXT }}