-
Notifications
You must be signed in to change notification settings - Fork 301
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Frank Li <[email protected]>
- Loading branch information
1 parent
4968c31
commit 3f63f0b
Showing
2 changed files
with
54 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Build pdf document | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
types: | ||
- opened | ||
- synchronize | ||
|
||
jobs: | ||
build: | ||
name: Build for pdf | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
repository: nxp-imx/mfgtools.wiki.git | ||
path: wiki | ||
ref: master | ||
|
||
- name: Set up environment | ||
run: sudo DEBIAN_FRONTEND=noninteractive apt-get --yes --force-yes install asciidoc rename | ||
|
||
- name: Build | ||
run: | | ||
cd wiki | ||
rename -f 's/\.asciidoc$//' * | ||
echo "<revhistory>" > UUU-docinfo.xml | ||
git log -n25 --reverse --format="format:<revision><revnumber>%h</revnumber><date>%cd</date><authorinitials>%an</authorinitials><revremark>%s</revremark></revision>" >> UUU-docinfo.xml | ||
echo "</revhistory>" >> UUU-docinfo.xml | ||
a2x -L -a docinfo UUU | ||
- name: Upload Build Artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: UUU.pdf | ||
path: wiki/UUU.pdf | ||
|
||
- name: Create or Update Release | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
name: Release UUU_1.5.${{ github.sha }}_TEST | ||
tag: UUU_1.5.${{ github.sha }}_TEST | ||
commit: ${{ github.hash }} | ||
allowUpdates: true | ||
draft: true | ||
prerelease: true | ||
artifacts: "wiki/UUU.pdf" |