diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 19fc6d7f..778a4cef 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,6 +1,8 @@ name: Release on: + # push: + # branches: [auto-release-workflows] workflow_dispatch: jobs: @@ -71,11 +73,11 @@ jobs: # HTML Portion - name: Convert tex to html - run: pandoc SS330_User_Manual.tex -s -o SS330_User_Manual.html --toc --self-contained --mathjax --default-image-extension=png --number-sections --citeproc --variable linkcolor=#0033CC + run: pandoc SS330_User_Manual.tex -s -o SS330_User_Manual_release.html --toc --self-contained --mathjax --default-image-extension=png --number-sections --citeproc --variable linkcolor=#0033CC # Note: for the following R code, may be a single command to deal with the double header issue before rendering. - name: Edit html to improve formatting run: | - html_txt <- readLines("SS330_User_Manual.html") + html_txt <- readLines("SS330_User_Manual_release.html") #read html snippits to add html_snips <- readLines("html_usermanual_snippets.html") # remove inline style @@ -172,7 +174,7 @@ jobs: html_txt <- append(html_txt, '
  • 17 References
  • ', after = where_add) - writeLines(html_txt, "SS330_User_Manual.html") + writeLines(html_txt, "SS330_User_Manual_release.html") writeLines(html_txt, "docs/SS330_User_Manual_release.html") shell: Rscript {0} @@ -197,6 +199,11 @@ jobs: #args: --lua-filter=tagged-filter.lua latexmk_use_lualatex: true +# Change name of pdf file to include "_release" + - name: Add _release to pdf file name + run: | + mv SS330_User_Manual.pdf SS330_User_Manual_release.pdf + # Update the version in index.md - name: Update version in index.md run: | @@ -231,17 +238,17 @@ jobs: uses: actions/upload-release-asset@v1 with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./SS330_User_Manual.html - asset_name: SS330_User_Manual.html + asset_path: ./SS330_User_Manual_release.html + asset_name: SS330_User_Manual_release.html asset_content_type: application/html # Add pdf as artifact for release - - name: Upload release artifact 2 + - name: Upload release artifact - pdf manual uses: actions/upload-release-asset@v1 with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./SS330_User_Manual.pdf - asset_name: SS330_User_Manual.pdf + asset_path: ./SS330_User_Manual_release.pdf + asset_name: SS330_User_Manual_release.pdf asset_content_type: application/pdf # Render github pages