Skip to content

Commit 3f63f0b

Browse files
committed
create pdf build action
Signed-off-by: Frank Li <[email protected]>
1 parent 4968c31 commit 3f63f0b

File tree

2 files changed

+54
-1
lines changed

2 files changed

+54
-1
lines changed

.github/workflows/build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
fetch-depth: 0
2222

2323
- name: Set up environment
24-
run: sudo DEBIAN_FRONTEND=noninteractive apt-get --yes --force-yes install libusb-1.0-0-dev libbz2-dev libzstd-dev asciidoc rename
24+
run: sudo DEBIAN_FRONTEND=noninteractive apt-get --yes --force-yes install libusb-1.0-0-dev libbz2-dev libzstd-dev
2525

2626
- name: Build
2727
run: |

.github/workflows/doc.yaml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Build pdf document
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
types:
9+
- opened
10+
- synchronize
11+
12+
jobs:
13+
build:
14+
name: Build for pdf
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v2
20+
with:
21+
fetch-depth: 0
22+
repository: nxp-imx/mfgtools.wiki.git
23+
path: wiki
24+
ref: master
25+
26+
- name: Set up environment
27+
run: sudo DEBIAN_FRONTEND=noninteractive apt-get --yes --force-yes install asciidoc rename
28+
29+
- name: Build
30+
run: |
31+
cd wiki
32+
rename -f 's/\.asciidoc$//' *
33+
echo "<revhistory>" > UUU-docinfo.xml
34+
git log -n25 --reverse --format="format:<revision><revnumber>%h</revnumber><date>%cd</date><authorinitials>%an</authorinitials><revremark>%s</revremark></revision>" >> UUU-docinfo.xml
35+
echo "</revhistory>" >> UUU-docinfo.xml
36+
a2x -L -a docinfo UUU
37+
38+
- name: Upload Build Artifacts
39+
uses: actions/upload-artifact@v2
40+
with:
41+
name: UUU.pdf
42+
path: wiki/UUU.pdf
43+
44+
- name: Create or Update Release
45+
uses: ncipollo/release-action@v1
46+
with:
47+
name: Release UUU_1.5.${{ github.sha }}_TEST
48+
tag: UUU_1.5.${{ github.sha }}_TEST
49+
commit: ${{ github.hash }}
50+
allowUpdates: true
51+
draft: true
52+
prerelease: true
53+
artifacts: "wiki/UUU.pdf"

0 commit comments

Comments
 (0)