From 93df57fe0f032ba375216fb725af94bf5bc97271 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Bonnarel?= <52417996+Bonnarel@users.noreply.github.com> Date: Fri, 8 Dec 2023 19:07:44 +0100 Subject: [PATCH 01/16] Update build.yml --- .github/workflows/build.yml | 60 +++++++++++++++++++++++++++---------- 1 file changed, 44 insertions(+), 16 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e238fab..4cb9d04 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,35 +1,63 @@ -name: CI build of the standard +name: Update PDF Preview -on: - pull_request: - types: [opened, synchronize, reopened] +env: + doc_name: DataLink + +on: + push: + branches: + - master jobs: build: - + runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + + - name: Checkout the repository + uses: actions/checkout@v1 with: submodules: true + - name: Setup dependencies run: | sudo add-apt-repository ppa:inkscape.dev/stable sudo apt update - sudo apt install texlive-latex-base texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended xsltproc ghostscript cm-super librsvg2-bin inkscape - + sudo apt install texlive-latex-base texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended xsltproc latexmk cm-super inkscape + sudo snap install pdftk + - name: Build the document run: | inkscape --version - make role_diagram.pdf biblio forcetex - + make role_diagram.pdf ${{ env.doc_name }}-draft.pdf + - name: Check the output run: | - test -f DataLink.pdf - test -f DataLink.bbl - - - uses: actions/upload-artifact@v1 + test -f ${{ env.doc_name }}-draft.pdf + test -f ${{ env.doc_name }}.bbl + + - name: Move the auto-pdf-preview tag + uses: weareyipyip/walking-tag-action@v2 + with: + tag-name: auto-pdf-preview + tag-message: | + Last commit taken into account for the automatically updated PDF preview of this IVOA document. + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Update the PDF preview + uses: Xotl/cool-github-releases@v1 with: - name: DataLink.pdf Preview - path: DataLink.pdf + mode: update + isPrerelease: true + tag_name: auto-pdf-preview + release_name: "Auto PDF Preview" + body_mrkdwn: | + 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 }}_ + assets: ${{ env.doc_name }}-draft.pdf + replace_assets: true + github_token: ${{ secrets.GITHUB_TOKEN }} From b34e2bfa99f8dc9b818d0f3bd63868b79177fbb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Bonnarel?= <52417996+Bonnarel@users.noreply.github.com> Date: Fri, 8 Dec 2023 21:07:28 +0100 Subject: [PATCH 02/16] Update preview.yml --- .github/workflows/preview.yml | 57 ++++++++++------------------------- 1 file changed, 16 insertions(+), 41 deletions(-) diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 4cb9d04..82af997 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -1,63 +1,38 @@ -name: Update PDF Preview +name: CI build of the standard -env: - doc_name: DataLink - -on: - push: - branches: - - master +on: + pull_request: + types: [opened, synchronize, reopened] jobs: build: - + runs-on: ubuntu-latest steps: - - - name: Checkout the repository - uses: actions/checkout@v1 + - uses: actions/checkout@v1 with: submodules: true - - name: Setup dependencies run: | sudo add-apt-repository ppa:inkscape.dev/stable sudo apt update - sudo apt install texlive-latex-base texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended xsltproc latexmk cm-super inkscape - sudo snap install pdftk - + sudo apt install texlive-latex-base texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended xsltproc ghostscript cm-super librsvg2-bin inkscape + - name: Build the document run: | inkscape --version - make role_diagram.pdf ${{ env.doc_name }}-draft.pdf - + make role_diagram.pdf biblio forcetex + - name: Check the output run: | - test -f ${{ env.doc_name }}-draft.pdf - test -f ${{ env.doc_name }}.bbl - - - name: Move the auto-pdf-preview tag - uses: weareyipyip/walking-tag-action@v2 - with: - tag-name: auto-pdf-preview - tag-message: | - Last commit taken into account for the automatically updated PDF preview of this IVOA document. - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Update the PDF preview - uses: Xotl/cool-github-releases@v1 + test -f DataLink.pdf + test -f DataLink.bbl + + - uses: actions/upload-artifact@v1 with: - mode: update - isPrerelease: true - tag_name: auto-pdf-preview - release_name: "Auto PDF Preview" - body_mrkdwn: | - 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 }}_ + name: DataLink.pdf Preview + path: DataLink.pdf assets: ${{ env.doc_name }}-draft.pdf replace_assets: true github_token: ${{ secrets.GITHUB_TOKEN }} From 81264995ba62718b844f866ed518e65c208a9810 Mon Sep 17 00:00:00 2001 From: BONNAREL FRANCOIS Date: Fri, 22 Dec 2023 17:28:27 +0100 Subject: [PATCH 03/16] recommendation --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index b275c3c..e0cd240 100644 --- a/Makefile +++ b/Makefile @@ -7,10 +7,10 @@ DOCNAME = DataLink DOCVERSION = 1.1 # Publication date, ISO format; update manually for "releases" -DOCDATE = 2023-11-08 +DOCDATE = 2023-12-15 # What is it you're writing: NOTE, WD, PR, REC, PEN, or EN -DOCTYPE = PR +DOCTYPE = REC # An e-mail address of the person doing the submission to the document # repository (can be empty until a make upload is being made) From 7c5fe0d015fd0e53000f177c53e57a43ade3061c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Bonnarel?= <52417996+Bonnarel@users.noreply.github.com> Date: Thu, 25 Jan 2024 17:25:57 +0100 Subject: [PATCH 04/16] Update build.yml --- .github/workflows/build.yml | 54 +++++++++++-------------------------- 1 file changed, 16 insertions(+), 38 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4cb9d04..1735aaf 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,60 +1,38 @@ -name: Update PDF Preview +name: CI build of the standard -env: - doc_name: DataLink - -on: - push: - branches: - - master +on: + pull_request: + types: [opened, synchronize, reopened] jobs: build: - + runs-on: ubuntu-latest steps: - - - name: Checkout the repository - uses: actions/checkout@v1 + - uses: actions/checkout@v1 with: submodules: true - - name: Setup dependencies run: | sudo add-apt-repository ppa:inkscape.dev/stable sudo apt update - sudo apt install texlive-latex-base texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended xsltproc latexmk cm-super inkscape - sudo snap install pdftk - + sudo apt install texlive-latex-base texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended xsltproc ghostscript cm-super librsvg2-bin inkscape + - name: Build the document run: | inkscape --version - make role_diagram.pdf ${{ env.doc_name }}-draft.pdf - + make role_diagram.pdf biblio forcetex + - name: Check the output run: | - test -f ${{ env.doc_name }}-draft.pdf - test -f ${{ env.doc_name }}.bbl - - - name: Move the auto-pdf-preview tag - uses: weareyipyip/walking-tag-action@v2 - with: - tag-name: auto-pdf-preview - tag-message: | - Last commit taken into account for the automatically updated PDF preview of this IVOA document. - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Update the PDF preview - uses: Xotl/cool-github-releases@v1 + test -f DataLink.pdf + test -f DataLink.bbl + + - uses: actions/upload-artifact@v1 with: - mode: update - isPrerelease: true - tag_name: auto-pdf-preview - release_name: "Auto PDF Preview" - body_mrkdwn: | - This release aims to provide a PDF preview of the last commit applied on this repository. + name: DataLink.pdf Preview + path: DataLink.pdf It will be updated automatically after each merge of a PullRequest. **DO NOT PUBLISH THIS PRE-RELEASE!**" _Corresponding commit: ${{ github.sha }}_ From 7080665d154aeb61466830257cdaae4aa66d5c03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Bonnarel?= <52417996+Bonnarel@users.noreply.github.com> Date: Thu, 25 Jan 2024 17:27:34 +0100 Subject: [PATCH 05/16] Update build.yml --- .github/workflows/build.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1735aaf..82af997 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -33,9 +33,6 @@ jobs: with: name: DataLink.pdf Preview path: DataLink.pdf - It will be updated automatically after each merge of a PullRequest. - **DO NOT PUBLISH THIS PRE-RELEASE!**" - _Corresponding commit: ${{ github.sha }}_ assets: ${{ env.doc_name }}-draft.pdf replace_assets: true github_token: ${{ secrets.GITHUB_TOKEN }} From 8bc6d6c98246ba76e41d7eab62ff88bcbd81dde1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Bonnarel?= <52417996+Bonnarel@users.noreply.github.com> Date: Thu, 25 Jan 2024 17:31:36 +0100 Subject: [PATCH 06/16] Update build.yml --- .github/workflows/build.yml | 39 ++++++++++++++++++++++--------------- 1 file changed, 23 insertions(+), 16 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 82af997..c563857 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,15 @@ -name: CI build of the standard +# 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: Check the IVOA document -on: +env: + doc_name: DataLink + +on: pull_request: types: [opened, synchronize, reopened] @@ -10,29 +19,27 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + + - name: Checkout the repository + uses: actions/checkout@v1 with: submodules: true + - name: Setup dependencies run: | - sudo add-apt-repository ppa:inkscape.dev/stable sudo apt update - sudo apt install texlive-latex-base texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended xsltproc ghostscript cm-super librsvg2-bin inkscape + sudo apt install texlive-latex-base texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended xsltproc latexmk cm-super - name: Build the document - run: | - inkscape --version - make role_diagram.pdf biblio forcetex + run: make - name: Check the output run: | - test -f DataLink.pdf - test -f DataLink.bbl + test -f ${{ env.doc_name }}.pdf + test -f ${{ env.doc_name }}.bbl - - uses: actions/upload-artifact@v1 + - name: Keep the PDF artefact + uses: actions/upload-artifact@v1 with: - name: DataLink.pdf Preview - path: DataLink.pdf - assets: ${{ env.doc_name }}-draft.pdf - replace_assets: true - github_token: ${{ secrets.GITHUB_TOKEN }} + name: PDF Preview + path: ${{ env.doc_name }}.pdf From 3acb3736bc94e4b3753e9361ef56a10f39816e98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Bonnarel?= <52417996+Bonnarel@users.noreply.github.com> Date: Thu, 25 Jan 2024 17:34:26 +0100 Subject: [PATCH 07/16] Update preview.yml --- .github/workflows/preview.yml | 66 +++++++++++++++++++++++++---------- 1 file changed, 47 insertions(+), 19 deletions(-) diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 82af997..1ba912a 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -1,38 +1,66 @@ -name: CI build of the standard +# 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 -on: - pull_request: - types: [opened, synchronize, reopened] +env: + doc_name: DataLinkImp + +on: + push: + branches: + - main jobs: build: - + runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + + - name: Checkout the repository + uses: actions/checkout@v1 with: submodules: true + - name: Setup dependencies run: | - sudo add-apt-repository ppa:inkscape.dev/stable sudo apt update - sudo apt install texlive-latex-base texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended xsltproc ghostscript cm-super librsvg2-bin inkscape - + sudo apt install texlive-latex-base texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended xsltproc latexmk cm-super + sudo snap install pdftk + - name: Build the document - run: | - inkscape --version - make role_diagram.pdf biblio forcetex - + run: make ${{ env.doc_name }}-draft.pdf + - name: Check the output run: | - test -f DataLink.pdf - test -f DataLink.bbl - - - uses: actions/upload-artifact@v1 + test -f ${{ env.doc_name }}-draft.pdf + test -f ${{ env.doc_name }}.bbl + + - name: Move the auto-pdf-preview tag + uses: weareyipyip/walking-tag-action@v2 + with: + tag-name: auto-pdf-preview + tag-message: | + Last commit taken into account for the automatically updated PDF preview of this IVOA document. + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Update the PDF preview + uses: Xotl/cool-github-releases@v1 with: - name: DataLink.pdf Preview - path: DataLink.pdf + mode: update + isPrerelease: true + tag_name: auto-pdf-preview + release_name: "Auto PDF Preview" + body_mrkdwn: | + 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 }}_ assets: ${{ env.doc_name }}-draft.pdf replace_assets: true github_token: ${{ secrets.GITHUB_TOKEN }} From d72bddde4db2d926e3a44d6c6a8594fc44707928 Mon Sep 17 00:00:00 2001 From: BONNAREL FRANCOIS Date: Thu, 25 Jan 2024 17:39:44 +0100 Subject: [PATCH 08/16] buikd and preview yml update --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index e0cd240..43591c2 100644 --- a/Makefile +++ b/Makefile @@ -9,6 +9,8 @@ DOCVERSION = 1.1 # Publication date, ISO format; update manually for "releases" DOCDATE = 2023-12-15 + + # What is it you're writing: NOTE, WD, PR, REC, PEN, or EN DOCTYPE = REC From 25584b3f9439f362d22cbac2f08c9f4824628934 Mon Sep 17 00:00:00 2001 From: BONNAREL FRANCOIS Date: Fri, 26 Jan 2024 09:30:58 +0100 Subject: [PATCH 09/16] update preview --- DataLink.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DataLink.tex b/DataLink.tex index bba7417..40490ed 100644 --- a/DataLink.tex +++ b/DataLink.tex @@ -21,7 +21,7 @@ \editor[http://www.ivoa.net/twiki/bin/view/IVOA/PatrickDowler] {Patrick Dowler} -% \previousversion[????URL????]{????Concise Document Label????} +% \previousversion[????URL????]{????Concise Document Label????ii} \previousversion[https://www.ivoa.net/documents/DataLink/20230413/]{PR-DataLink-1.1-20230413} \previousversion[https://www.ivoa.net/documents/DataLink/20211115/]{WD-DataLink-1.1-20211115} \previousversion[https://www.ivoa.net/documents/DataLink/20150617/]{DataLink-1.0} From 9ab074c3c28ba1827cd4d497751c2afefeb13a30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Bonnarel?= <52417996+Bonnarel@users.noreply.github.com> Date: Fri, 26 Jan 2024 09:53:31 +0100 Subject: [PATCH 10/16] Update build.yml --- .github/workflows/build.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c563857..3b29382 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -43,3 +43,8 @@ jobs: with: name: PDF Preview path: ${{ env.doc_name }}.pdf + + uses: actions/upload-artifact@v1 + with: + name: PDF Preview + path: ${{ env.doc_name }}.pdf From 5a480889a281d6cf8fbafbceda4884e82da082bb Mon Sep 17 00:00:00 2001 From: BONNAREL FRANCOIS Date: Fri, 26 Jan 2024 09:55:21 +0100 Subject: [PATCH 11/16] update preview --- DataLink.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DataLink.tex b/DataLink.tex index 40490ed..bba7417 100644 --- a/DataLink.tex +++ b/DataLink.tex @@ -21,7 +21,7 @@ \editor[http://www.ivoa.net/twiki/bin/view/IVOA/PatrickDowler] {Patrick Dowler} -% \previousversion[????URL????]{????Concise Document Label????ii} +% \previousversion[????URL????]{????Concise Document Label????} \previousversion[https://www.ivoa.net/documents/DataLink/20230413/]{PR-DataLink-1.1-20230413} \previousversion[https://www.ivoa.net/documents/DataLink/20211115/]{WD-DataLink-1.1-20211115} \previousversion[https://www.ivoa.net/documents/DataLink/20150617/]{DataLink-1.0} From d8b3dce42e7b9f167d204a04526cc120ab1f97c2 Mon Sep 17 00:00:00 2001 From: BONNAREL FRANCOIS Date: Fri, 26 Jan 2024 10:02:47 +0100 Subject: [PATCH 12/16] update preview --- DataLink.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DataLink.tex b/DataLink.tex index bba7417..ef74300 100644 --- a/DataLink.tex +++ b/DataLink.tex @@ -21,7 +21,7 @@ \editor[http://www.ivoa.net/twiki/bin/view/IVOA/PatrickDowler] {Patrick Dowler} -% \previousversion[????URL????]{????Concise Document Label????} +% \previousversion[????URL????]{????Concise Document Label????i} \previousversion[https://www.ivoa.net/documents/DataLink/20230413/]{PR-DataLink-1.1-20230413} \previousversion[https://www.ivoa.net/documents/DataLink/20211115/]{WD-DataLink-1.1-20211115} \previousversion[https://www.ivoa.net/documents/DataLink/20150617/]{DataLink-1.0} From d2d591596dc51202621e3792b8d6e1b2007d0ce4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Bonnarel?= <52417996+Bonnarel@users.noreply.github.com> Date: Fri, 26 Jan 2024 15:06:45 +0100 Subject: [PATCH 13/16] Update preview.yml --- .github/workflows/preview.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 1ba912a..536f2ac 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -7,7 +7,7 @@ name: Update PDF Preview env: - doc_name: DataLinkImp + doc_name: DataLink on: push: From e3314504494e337109ff57e23e3f4248ff0875ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Bonnarel?= <52417996+Bonnarel@users.noreply.github.com> Date: Fri, 26 Jan 2024 15:11:50 +0100 Subject: [PATCH 14/16] Update preview.yml --- .github/workflows/preview.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 536f2ac..d60c5a8 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -12,7 +12,7 @@ env: on: push: branches: - - main + - master jobs: build: From 03464fc374f7d0bc6c4bfbafabd9b0c12b022af8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Mantelet?= Date: Thu, 6 Nov 2025 16:01:37 +0100 Subject: [PATCH 15/16] Fix workflows by updating ivoatex and Yaml files. Executed commands: - cd ivoatex/ && git pull origin master && cd .. - make update-ci - sed -i 's/\bmain\b/master/g' .github/workflows/preview.yml - git add .github/workflows/preview.yml ivoatex/ - git commit --- .github/workflows/build.yml | 26 ++++++------ .github/workflows/preview.yml | 74 +++++++++++++++++++---------------- ivoatex | 2 +- 3 files changed, 54 insertions(+), 48 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3b29382..fa5ea5b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,34 +17,32 @@ jobs: build: runs-on: ubuntu-latest - + steps: - + - name: Checkout the repository - uses: actions/checkout@v1 + uses: actions/checkout@v4 with: submodules: true - + - name: Setup dependencies run: | sudo apt update - sudo apt install texlive-latex-base texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended xsltproc latexmk cm-super - + sudo apt install texlive-latex-base texlive-latex-recommended \ + texlive-latex-extra texlive-fonts-recommended \ + librsvg2-bin latexmk \ + pdftk xsltproc latexmk cm-super + - name: Build the document run: make - + - name: Check the output run: | test -f ${{ env.doc_name }}.pdf test -f ${{ env.doc_name }}.bbl - - - name: Keep the PDF artefact - uses: actions/upload-artifact@v1 - with: - name: PDF Preview - path: ${{ env.doc_name }}.pdf - uses: actions/upload-artifact@v1 + - name: Keep the PDF artefact + uses: actions/upload-artifact@v4 with: name: PDF Preview path: ${{ env.doc_name }}.pdf diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index d60c5a8..44b447a 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -7,7 +7,9 @@ name: Update PDF Preview env: - doc_name: DataLink + doc_name : DataLink + branch_name: ${{ github.head_ref || github.ref_name }} + tag_preview: auto-pdf-preview on: push: @@ -16,51 +18,57 @@ on: jobs: build: - + runs-on: ubuntu-latest - + steps: - + - name: Checkout the repository - uses: actions/checkout@v1 + uses: actions/checkout@v4 with: submodules: true - + - name: Setup dependencies run: | sudo apt update - sudo apt install texlive-latex-base texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended xsltproc latexmk cm-super - sudo snap install pdftk - + sudo apt install texlive-latex-base texlive-latex-recommended \ + texlive-latex-extra texlive-fonts-recommended \ + librsvg2-bin latexmk \ + pdftk xsltproc latexmk cm-super + - name: Build the document run: make ${{ env.doc_name }}-draft.pdf - + - name: Check the output run: | test -f ${{ env.doc_name }}-draft.pdf test -f ${{ env.doc_name }}.bbl - - - name: Move the auto-pdf-preview tag - uses: weareyipyip/walking-tag-action@v2 - with: - tag-name: auto-pdf-preview - tag-message: | - Last commit taken into account for the automatically updated PDF preview of this IVOA document. + + - name: Remove the former PDF preview (if any) + run: | + existingTag=$( gh release list --exclude-drafts --json 'isPrerelease,tagName' \ + --jq '.[] | select(.isPrerelease == true and .tagName == "${{ env.tag_preview }}") | .tagName' \ + | xargs -n 1 echo ) + if [ -n "$existingTag" ]; + then + gh release delete --cleanup-tag "$existingTag" + fi env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Update the PDF preview - uses: Xotl/cool-github-releases@v1 - with: - mode: update - isPrerelease: true - tag_name: auto-pdf-preview - release_name: "Auto PDF Preview" - body_mrkdwn: | - This release aims to provide a PDF preview of the last commit applied on this repository. + 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 }}_ - assets: ${{ env.doc_name }}-draft.pdf - replace_assets: true - github_token: ${{ secrets.GITHUB_TOKEN }} + **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 }} + diff --git a/ivoatex b/ivoatex index ffdbc09..e265eb0 160000 --- a/ivoatex +++ b/ivoatex @@ -1 +1 @@ -Subproject commit ffdbc0983d69ff1ecddf14e82dd71e4cf5ae4fa4 +Subproject commit e265eb0e9a0c956c33ccc4e0f20ceba905b1a63b From dc08280675cf4d04df9677607a9578d237b880c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Mantelet?= Date: Thu, 6 Nov 2025 16:39:07 +0100 Subject: [PATCH 16/16] Remove a CI debugging character or a typo --- DataLink.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DataLink.tex b/DataLink.tex index ef74300..bba7417 100644 --- a/DataLink.tex +++ b/DataLink.tex @@ -21,7 +21,7 @@ \editor[http://www.ivoa.net/twiki/bin/view/IVOA/PatrickDowler] {Patrick Dowler} -% \previousversion[????URL????]{????Concise Document Label????i} +% \previousversion[????URL????]{????Concise Document Label????} \previousversion[https://www.ivoa.net/documents/DataLink/20230413/]{PR-DataLink-1.1-20230413} \previousversion[https://www.ivoa.net/documents/DataLink/20211115/]{WD-DataLink-1.1-20211115} \previousversion[https://www.ivoa.net/documents/DataLink/20150617/]{DataLink-1.0}