Merge pull request #43 from mbtaylor/parquet-responseformat #15
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 generated from a template file maintained in the ivoatex repository. | |
# To create and install it into a project repository, do: | |
# make github-preview | |
# git commit | |
# git push | |
# | |
name: Update PDF Preview | |
env: | |
doc_name : DALI | |
branch_name: ${{ github.head_ref || github.ref_name }} | |
tag_preview: auto-pdf-preview | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Setup dependencies | |
run: | | |
sudo apt install texlive-latex-base texlive-latex-recommended \ | |
texlive-latex-extra texlive-fonts-recommended \ | |
pdftk xsltproc latexmk cm-super | |
- name: Build the document | |
run: make biblio ${{ env.doc_name }}-draft.pdf | |
- name: Check the output | |
run: | | |
test -f ${{ env.doc_name }}-draft.pdf | |
test -f ${{ env.doc_name }}.bbl | |
- name: Remove the former PDF preview | |
run: | | |
gh release delete ${{ env.tag_preview }} --cleanup-tag --yes | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Upload the new PDF preview | |
run: | | |
RELEASE_NOTES="This release aims to provide a PDF preview of the last commit applied on this repository. | |
It will be updated automatically after each merge of a PullRequest. | |
**DO NOT PUBLISH THIS PRE-RELEASE!** | |
_Corresponding commit: ${{ github.sha }}_" | |
gh release create ${{ env.tag_preview }} \ | |
${{ env.doc_name }}-draft.pdf \ | |
--prerelease \ | |
--target "${{ env.branch_name }}" \ | |
--title 'Auto PDF Preview' \ | |
--notes "$RELEASE_NOTES" | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |