try ci
This commit is contained in:
parent
002d82145c
commit
c33f7b8991
@ -4,50 +4,35 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches: [main, ci] # 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:
|
pull_request:
|
||||||
branches:
|
branches: [main]
|
||||||
- main
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
container:
|
container:
|
||||||
image: leplusorg/latex
|
image: leplusorg/latex
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: "Determine prerequisites"
|
- name: "Determine prerequisites"
|
||||||
id: prereq
|
id: prereq
|
||||||
run: |
|
run: |
|
||||||
echo "need_node=$(command -v node >/dev/null 2>&1 && echo 0 || echo 1)" >> $GITHUB_OUTPUT
|
echo "need_node=$(command -v node >/dev/null 2>&1 && echo 0 || echo 1)" >> $GITHUB_OUTPUT
|
||||||
- name: Install node
|
- name: Install node
|
||||||
if: ${{ steps.prereq.outputs.need_node == '1' }}
|
if: ${{ steps.prereq.outputs.need_node == '1' }}
|
||||||
run: |
|
run: |
|
||||||
apt update -y && apt install -y curl
|
apt update -y && apt install -y curl
|
||||||
curl -sS https://webi.sh/node | sh
|
curl -sS https://webi.sh/node | sh
|
||||||
echo ~/.local/opt/node/bin >> $GITHUB_PATH
|
echo ~/.local/opt/node/bin >> $GITHUB_PATH
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
- uses: actions/checkout@v3
|
fetch-depth: 0
|
||||||
with:
|
- name: Compile LaTeX Document
|
||||||
fetch-depth: 0
|
run: latexmk -pdf ${{ env.root_file }}
|
||||||
|
env:
|
||||||
- name: Compile LaTeX Document
|
root_file: main.tex # Replace 'main.tex' with the path to your main LaTeX file
|
||||||
run: latexmk -pdf ${{ env.root_file }}
|
- name: Upload artifacts and release assets
|
||||||
env:
|
uses: nanoufo/action-upload-artifacts-and-release-assets@v1.9
|
||||||
root_file: main.tex # Replace 'main.tex' with the path to your main LaTeX file
|
with:
|
||||||
|
path: ./main.pdf
|
||||||
- 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
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
latex_spellcheck:
|
latex_spellcheck:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -61,23 +46,19 @@ jobs:
|
|||||||
LATEX_SPELLCHECK_TEXLIVE_VERSION: TL2021-2021-12-12-04-05
|
LATEX_SPELLCHECK_TEXLIVE_VERSION: TL2021-2021-12-12-04-05
|
||||||
LATEX_SPELLCHECK_TEXLIVE_IMAGE: registry.gitlab.com/islandoftex/images/texlive
|
LATEX_SPELLCHECK_TEXLIVE_IMAGE: registry.gitlab.com/islandoftex/images/texlive
|
||||||
steps:
|
steps:
|
||||||
- name: "Determine prerequisites"
|
- name: "Determine prerequisites"
|
||||||
id: prereq
|
id: prereq
|
||||||
run: |
|
run: |
|
||||||
echo "need_node=$(command -v node >/dev/null 2>&1 && echo 0 || echo 1)" >> $GITHUB_OUTPUT
|
echo "need_node=$(command -v node >/dev/null 2>&1 && echo 0 || echo 1)" >> $GITHUB_OUTPUT
|
||||||
- name: Install node
|
- name: Install node
|
||||||
if: ${{ steps.prereq.outputs.need_node == '1' }}
|
if: ${{ steps.prereq.outputs.need_node == '1' }}
|
||||||
run: |
|
run: |
|
||||||
apt update -y && apt install -y curl
|
apt update -y && apt install -y curl
|
||||||
curl -sS https://webi.sh/node | sh
|
curl -sS https://webi.sh/node | sh
|
||||||
echo ~/.local/opt/node/bin >> $GITHUB_PATH
|
echo ~/.local/opt/node/bin >> $GITHUB_PATH
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
- uses: actions/checkout@v3
|
fetch-depth: 0
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
|
|
||||||
- name: Prepare environment
|
- name: Prepare environment
|
||||||
run: |
|
run: |
|
||||||
cd $LATEX_SPELLCHECK_SOURCE_PATH
|
cd $LATEX_SPELLCHECK_SOURCE_PATH
|
||||||
@ -111,7 +92,6 @@ jobs:
|
|||||||
sed -i 's/~/ 1/g' $LATEX_SPELLCHECK_SOURCE_NAME.spellcheck.merged.tmp
|
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
|
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
|
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
|
- name: Upload Spellcheck Results
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
|
Loading…
Reference in New Issue
Block a user