try ci
Some checks failed
Compile LaTeX document / build (push) Successful in 29s
Compile LaTeX document / latex_spellcheck (push) Failing after 2m7s

This commit is contained in:
philipp 2024-02-28 10:06:41 +01:00
parent 002d82145c
commit c33f7b8991

View File

@ -4,16 +4,13 @@ on:
push:
branches: [main, ci] # or any other branch you want to trigger the workflow
pull_request:
branches:
- main
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
container:
image: leplusorg/latex
steps:
- name: "Determine prerequisites"
id: prereq
@ -25,29 +22,17 @@ jobs:
apt update -y && apt install -y curl
curl -sS https://webi.sh/node | sh
echo ~/.local/opt/node/bin >> $GITHUB_PATH
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Compile LaTeX Document
run: latexmk -pdf ${{ env.root_file }}
env:
root_file: main.tex # Replace 'main.tex' with the path to your main LaTeX file
- name: Upload artifacts and release assets
uses: nanoufo/action-upload-artifacts-and-release-assets@v1.9
with:
path: |
./main.pdf
# - name: Upload PDF
# uses: actions/upload-artifact@v3
# with:
# name: Beitrittserklaerung_RudernDonauLinz.pdf
# path: ./main.pdf
path: ./main.pdf
latex_spellcheck:
runs-on: ubuntu-latest
@ -71,13 +56,9 @@ jobs:
apt update -y && apt install -y curl
curl -sS https://webi.sh/node | sh
echo ~/.local/opt/node/bin >> $GITHUB_PATH
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Prepare environment
run: |
cd $LATEX_SPELLCHECK_SOURCE_PATH
@ -111,7 +92,6 @@ jobs:
sed -i 's/~/ 1/g' $LATEX_SPELLCHECK_SOURCE_NAME.spellcheck.merged.tmp
detex $LATEX_SPELLCHECK_SOURCE_NAME.spellcheck.merged.tmp >$LATEX_SPELLCHECK_SOURCE_NAME.spellcheck.plain.tmp
python3 -m yalafi.shell --lt-directory /srv/lt/LanguageTool --output html --language $SOURCE_LANGUAGE $LATEX_SPELLCHECK_SOURCE_NAME.spellcheck.plain.tmp >$LATEX_SPELLCHECK_SOURCE_NAME.spellcheck.html
- name: Upload Spellcheck Results
uses: actions/upload-artifact@v2
with: