From 1bd1a8b15d3e44e8f55adb06712f8d4d44793263 Mon Sep 17 00:00:00 2001 From: "Charlton, Scott R." Date: Mon, 15 Apr 2024 15:12:46 -0600 Subject: [PATCH] Added compile and upload step --- .github/workflows/chm.yml | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/.github/workflows/chm.yml b/.github/workflows/chm.yml index de6e092d8..d15352dbb 100644 --- a/.github/workflows/chm.yml +++ b/.github/workflows/chm.yml @@ -58,10 +58,27 @@ jobs: cmd /c start /wait .\tmp\setup.exe Remove-Item -Recurse -Force .\tmp Remove-Item -Recurse -Force .\htmlhelp.exe - # the next line doesn't seem to work (supposed to set the path) - # echo 'C:\Program Files (x86)\HTML Help Workshop' >> $GITHUB_PATH + # set path Write-Output 'C:\Program Files (x86)\HTML Help Workshop' | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append - - name: 'hhc' + - name: compile chm + shell: bash working-directory: ${{ github.workspace }}/HTMLversion - run: Get-Command hhc + run: | + # hhc returns 1 on success + set +e + hhc phreeqc3.hhp | tee hhc.out + status=${PIPESTATUS[0]} + set -e + if [ "$status" -eq 1 ]; then + echo "[OK]" + exit 0 + else + echo "[FAILED]" + exit 1 + fi + + - uses: actions/upload-artifact@v4 + with: + name: chm + path: ${{github.workspace}}/HTMLversion/phreeqc3.chm