Skip to content

Commit

Permalink
Merge branch 'main' into fix-107
Browse files Browse the repository at this point in the history
  • Loading branch information
koppor authored Nov 9, 2023
2 parents 06768d1 + e86f11c commit af8c9d8
Show file tree
Hide file tree
Showing 5 changed files with 97 additions and 32 deletions.
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
67 changes: 45 additions & 22 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: check
on:
push:
branches:
-main
- main
pull_request:
schedule:
- cron: '1 2 5 * *'
Expand All @@ -16,53 +16,76 @@ concurrency:
jobs:
build:
runs-on: ubuntu-latest
container:
image: reitzig/texlive-base:2023.1
options: --user root
env:
SRC_DIR: /__w/LNI/LNI

strategy:
fail-fast: false
matrix:
engine: [pdflatex, lualatex]
steps:
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
show-progress: ''
- name: Install TeX Live
uses: zauguin/install-texlive@v3
with:
package_file: Texlivefile
- name: Generate lni.cls, *.tex, ...
run: |
pdflatex lni.dtx
pdflatex lni.dtx
pdflatex lni.dtx
- name: Check for modifications
run: |
git update-index --refresh
if ! git diff-index --quiet HEAD --; then
echo "Worktree is not clean."
git diff-index --name-status HEAD
exit 1
fi
- name: Generate mybibfile.bib
run: touch mybibfile.bib

- run: ${{ matrix.engine }} lni-author-template

- name: Add x86_64-linuxmusl to PATH
run: echo "/usr/local/texlive/2023/bin/x86_64-linuxmusl" >> $GITHUB_PATH
- run: ${{ matrix.engine }} lni-paper-example-de
- run: biber lni-paper-example-de
- run: ${{ matrix.engine }} lni-paper-example-de
- run: ${{ matrix.engine }} lni-paper-example-de

- name: Build examples (using build.sh)
run: /bin/entrypoint work
- name: debug
run: ls -la

- name: Upload build result
uses: actions/upload-artifact@v3
with:
name: PDFs
path: '/work/out'
name: PDFs-${{ matrix.engine }}
path: |
lni-author-template.pdf
lni-paper-example*.pdf
- name: Prepare GH pages content
if: github.ref == 'refs/heads/main'
if: github.ref == 'refs/heads/main' && matrix.engine == 'lualatex'
run: |
set -e
mkdir /tmp/gh-pages
cd /tmp/gh-pages
cp /__w/LNI/LNI/README.md index.md
cp /work/out/*.pdf .
apk add git
cp README.md /tmp/gh-pages/index.md
cp *.pdf /tmp/gh-pages
- name: Deploy to GH pages
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
if: github.ref == 'refs/heads/main' && matrix.engine == 'lualatex'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: /tmp/gh-pages

- name: Install dependencies for ctanify
run: apk add perl-file-copy-recursive zip
run: sudo apt-get install -y libfile-copy-recursive-perl zip

- name: Prepare for CTAN
run: ./prepare_for_CTAN

- name: Upload CTAN build
uses: actions/upload-artifact@v3
with:
name: CTAN
name: CTAN-${{ matrix.engine }}
path: '*.tar.gz'
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,17 @@ lni-paper-example-de.pdf

mybibfile.bib

*.old

*.hd

texlogsieve

LNI-english.lbx
LNI-ngerman.lbx
LNI.bbx
LNI.cbx

## Core latex/pdflatex auxiliary files:
*.aux
*.lof
Expand Down
37 changes: 37 additions & 0 deletions Texlivefile
Original file line number Diff line number Diff line change
@@ -1,19 +1,56 @@
latex-bin
amsmath
babel-english
babel-german
bera
blindtext
biber
biblatex
biblatex-lni
booktabs
caption
carlisle
ccicons
cleveref
cm-super
cmap
collection-fontsrecommended
csquotes
ctanify
dehyph-exptl
enumitem
epstopdf-pkg
eso-pic
etoolbox
fancyhdr
fontspec
geometry
graphics
grffile
hologo
hyperref
hyphen-german
hypdoc
infwarerr
kvsetkeys
kvdefinekeys
libertine
listings
ltxcmds
luatex
luatexbase
microtype
mnsymbol
mwe
nag
newtx
newtxtt
oberdiek
selnolig
siunitx
tex-gyre
tools
upquote
xcolor
xpatch
xstring
10 changes: 0 additions & 10 deletions build.sh

This file was deleted.

0 comments on commit af8c9d8

Please sign in to comment.