Compare commits

..

No commits in common. "d68b85b1a9837efd245adda737387b1f5759a0de" and "5fe4734ed4846cfff8e44e87de03013226f3d163" have entirely different histories.

3 changed files with 45 additions and 53 deletions

View File

@ -2,15 +2,18 @@ name: Compile LaTeX document
on:
push:
branches: [main] # or any other branch you want to trigger the workflow
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
@ -22,17 +25,29 @@ 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: christopherhx/gitea-upload-artifact@v4
- name: Upload artifacts and release assets
uses: nanoufo/action-upload-artifacts-and-release-assets@v1.9
with:
path: ./main.pdf
path: |
./main.pdf
# - name: Upload PDF
# uses: actions/upload-artifact@v3
# with:
# name: Beitrittserklaerung_RudernDonauLinz.pdf
# path: ./main.pdf
latex_spellcheck:
runs-on: ubuntu-latest
@ -41,24 +56,15 @@ jobs:
env:
LATEX_SPELLCHECK_SOURCE_NAME: main
LATEX_SPELLCHECK_SOURCE_PATH: './'
LATEX_SPELLCHECK_SOURCE_LANGUAGE_DEFAULT: de-AT
LATEX_SPELLCHECK_SOURCE_LANGUAGE_DEFAULT: en-US
LATEX_SPELLCHECK_IGNORELIST: spellcheck_custom_words.txt
LATEX_SPELLCHECK_TEXLIVE_VERSION: TL2021-2021-12-12-04-05
LATEX_SPELLCHECK_TEXLIVE_IMAGE: registry.gitlab.com/islandoftex/images/texlive
steps:
- name: "Determine prerequisites"
id: prereq
run: |
echo "need_node=$(command -v node >/dev/null 2>&1 && echo 0 || echo 1)" >> $GITHUB_OUTPUT
- name: Install node
if: ${{ steps.prereq.outputs.need_node == '1' }}
run: |
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
@ -81,7 +87,7 @@ jobs:
apt-get update
apt-get -y install python3-pip wget python3-venv
python3 -m venv /tmp/env
. /tmp/env/bin/activate
source /tmp/env/bin/activate
pip3 install yalafi
wget --directory-prefix=/srv/ https://languagetool.org/download/LanguageTool-stable.zip
unzip /srv/LanguageTool-stable.zip -d /srv/lt/
@ -92,14 +98,9 @@ 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:
# name: spellcheck-results
# path: ${{ env.LATEX_SPELLCHECK_SOURCE_PATH }}${{ env.LATEX_SPELLCHECK_SOURCE_NAME }}.spellcheck.html
- name: Upload artifacts and release assets
uses: christopherhx/gitea-upload-artifact@v4
- name: Upload Spellcheck Results
uses: actions/upload-artifact@v2
with:
name: spellcheck-results
path: ${{ env.LATEX_SPELLCHECK_SOURCE_PATH }}${{ env.LATEX_SPELLCHECK_SOURCE_NAME }}.spellcheck.html

View File

@ -1,9 +0,0 @@
ASKÖ
OÖRV
ÖRV
ZVR-Zahl
Heilhamerweg
ruderischen
Viribus
units