diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 2773ba1f..6adb8a6b 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -21,7 +21,7 @@ jobs: fetch-depth: 0 - name: Set up environment - run: sudo DEBIAN_FRONTEND=noninteractive apt-get --yes --force-yes install libusb-1.0-0-dev libbz2-dev libzstd-dev asciidoc rename + run: sudo DEBIAN_FRONTEND=noninteractive apt-get --yes --force-yes install libusb-1.0-0-dev libbz2-dev libzstd-dev - name: Build run: | diff --git a/.github/workflows/doc.yaml b/.github/workflows/doc.yaml new file mode 100644 index 00000000..96de90e4 --- /dev/null +++ b/.github/workflows/doc.yaml @@ -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 "" > UUU-docinfo.xml + git log -n25 --reverse --format="format:%h%cd%an%s" >> UUU-docinfo.xml + echo "" >> 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"