diff --git a/.github/workflows/build-ci.yml b/.github/workflows/build-ci.yml index 43dd9347..1d21d4ed 100644 --- a/.github/workflows/build-ci.yml +++ b/.github/workflows/build-ci.yml @@ -106,5 +106,30 @@ jobs: - name: Run Tests run: dotnet test --verbosity q + + build-manual: + runs-on: ubuntu-latest + steps: + - name: Fetch Code + uses: actions/checkout@v2 + - name: Build Manual + id: build_manual + uses: xu-cheng/latex-action@v2 + with: + root_file: manual/cxanalytix.tex + work_in_root_file_dir: true + - name: list dir + run: ls -l manual + build-release-notes: + runs-on: ubuntu-latest + steps: + - name: Fetch Code + uses: actions/checkout@v2 + - name: Build Release Notes + id: build_release_notes + uses: xu-cheng/latex-action@v2 + with: + root_file: release_notes/release_notes.tex + work_in_root_file_dir: true diff --git a/.github/workflows/publish-build.yml b/.github/workflows/publish-build.yml index 4e44dddf..4aa66061 100644 --- a/.github/workflows/publish-build.yml +++ b/.github/workflows/publish-build.yml @@ -81,6 +81,24 @@ jobs: echo \
>> release.md echo docker pull $DOCKER_REPO:v${{ inputs.tag }} >> release.md + - name: Build PDF Manual + uses: xu-cheng/latex-action@v2 + with: + root_file: manual/cxanalytix.tex + work_in_root_file_dir: true + + - name: Build PDF Release Notes + uses: xu-cheng/latex-action@v2 + with: + root_file: release_notes/release_notes.tex + work_in_root_file_dir: true + + - name: Move documentation artifacts + run: | + mv manual/cxanalytix.pdf artifacts/CxAnalytix_Manual_${{ inputs.tag }}.pdf + mv release_notes/release_notes.pdf artifacts/CxAnalytix_ReleaseNotes_${{ inputs.tag }}.pdf + + - name: Create GitHub Release id: create_release uses: ncipollo/release-action@v1 @@ -95,7 +113,21 @@ jobs: replacesArtifacts: true tag: v${{ inputs.tag }} - + - name: Update Documentation for GitHub Release + id: update_release + uses: ncipollo/release-action@v1 + with: + allowUpdates: true + artifactErrorsFailBuild: true + artifacts: artifacts/*.pdf + artifactContentType: application/pdf + omitBodyDuringUpdate: true + name: v${{ inputs.tag }} + omitNameDuringUpdate: true + prerelease: ${{ inputs.prerelease }} + replacesArtifacts: false + removeArtifacts: false + tag: v${{ inputs.tag }}