File tree Expand file tree Collapse file tree 2 files changed +54
-1
lines changed Expand file tree Collapse file tree 2 files changed +54
-1
lines changed Original file line number Diff line number Diff line change 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 : |
Original file line number Diff line number Diff line change 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"
You can’t perform that action at this time.
0 commit comments