Skip to content

Commit 3b55827

Browse files
committed
Merge branch 'master' of github.com:mseri/AoM
2 parents fb270b9 + 720d325 commit 3b55827

23 files changed

+6107
-6087
lines changed

.github/workflows/generate_pdf.yml

Lines changed: 74 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -23,78 +23,80 @@ jobs:
2323
latex-job:
2424
needs: create_draft_release
2525
runs-on: ubuntu-latest
26-
26+
2727
name: Compile And Upload PDF
2828

2929
steps:
30-
- name: Checkout
31-
uses: actions/checkout@v2
32-
33-
- name: Set git user
34-
run: |
35-
git config --global user.name github-actions
36-
git config --global user.email github-actions-bot@users.noreply.github.com
37-
38-
- name: Define env
39-
run: |
40-
echo "GITHUB_TAG=$(git describe --always --tags)" >> $GITHUB_ENV
41-
echo "BUILD_DATE=$(date +'%Y_%m_%d')" >> $GITHUB_ENV
42-
43-
- uses: actions/cache@v2
44-
name: Tectonic Cache
45-
with:
46-
path: ~/.cache/Tectonic
47-
key: ${{ runner.os }}-tectonic-${{ hashFiles('**/*.tex') }}
48-
restore-keys: |
49-
${{ runner.os }}-tectonic-
50-
51-
- uses: wtfjoke/setup-tectonic@v2
52-
with:
53-
github-token: ${{ secrets.GITHUB_TOKEN }}
54-
biber-version: 2.17
55-
56-
- name: Prepare env
57-
run: |
58-
sudo apt update
59-
sudo apt install fonts-opendyslexic fonts-texgyre texlive-bibtex-extra biber
60-
sudo rm -rf /usr/share/fonts/woff/opendyslexic
61-
mkdir assets
62-
63-
- name: Run Tectonic
64-
run: |
65-
tectonic aom.tex
66-
mv aom.pdf assets/aom-tg.pdf
67-
68-
- name: Upload PDF
69-
if: ${{ success() }}
70-
uses: actions/upload-artifact@v4
71-
with:
72-
path: assets/aom-tg.pdf
73-
name: aom-tg-${{ env.BUILD_DATE }}-${{ env.GITHUB_TAG }}.pdf
74-
if-no-files-found: error
75-
76-
- name: Remove TeX Gyre font customizations, falls back to OpenDyslxic
77-
run: sed -i.bak '12,14d' aom.tex
78-
79-
- name: Run Tectonic
80-
run: |
81-
tectonic aom.tex
82-
mv aom.pdf assets/aom-od.pdf
83-
84-
- name: Upload PDF
85-
if: ${{ success() }}
86-
uses: actions/upload-artifact@v4
87-
with:
88-
path: assets/aom-od.pdf
89-
name: aom-od-${{ env.BUILD_DATE }}-${{ env.GITHUB_TAG }}.pdf
90-
if-no-files-found: error
91-
92-
- name: Upload release assets
93-
if: ${{ success() && startsWith(github.ref, 'refs/tags/') }}
94-
id: upload-release-assets
95-
uses: dwenegar/upload-release-assets@v1
96-
env:
97-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
98-
with:
99-
release_id: ${{ needs.create_draft_release.outputs.id }}
100-
assets_path: assets/
30+
- name: Checkout
31+
uses: actions/checkout@v2
32+
33+
- name: Set git user
34+
run: |
35+
git config --global user.name github-actions
36+
git config --global user.email github-actions-bot@users.noreply.github.com
37+
38+
- name: Define env
39+
run: |
40+
echo "GITHUB_TAG=$(git describe --always --tags)" >> $GITHUB_ENV
41+
echo "BUILD_DATE=$(date +'%Y_%m_%d')" >> $GITHUB_ENV
42+
43+
- uses: actions/cache@v4
44+
name: Tectonic Cache
45+
with:
46+
path: ~/.cache/Tectonic
47+
key: ${{ runner.os }}-tectonic-${{ hashFiles('**/*.tex') }}
48+
restore-keys: |
49+
${{ runner.os }}-tectonic-
50+
51+
- uses: wtfjoke/setup-tectonic@v2
52+
with:
53+
github-token: ${{ secrets.GITHUB_TOKEN }}
54+
biber-version: 2.17
55+
56+
- name: Prepare env
57+
run: |
58+
sudo apt update
59+
sudo apt install fonts-opendyslexic fonts-texgyre texlive-bibtex-extra biber texlive-binaries
60+
sudo rm -rf /usr/share/fonts/woff/opendyslexic
61+
mkdir assets
62+
63+
- name: Run Tectonic
64+
run: |
65+
tectonic aom.tex
66+
makeindex aom.idx
67+
mv aom.pdf assets/aom-tg.pdf
68+
69+
- name: Upload PDF
70+
if: ${{ success() }}
71+
uses: actions/upload-artifact@v4
72+
with:
73+
path: assets/aom-tg.pdf
74+
name: aom-tg-${{ env.BUILD_DATE }}-${{ env.GITHUB_TAG }}.pdf
75+
if-no-files-found: error
76+
77+
- name: Remove TeX Gyre font customizations, falls back to OpenDyslxic
78+
run: sed -i.bak '12,14d' aom.tex
79+
80+
- name: Run Tectonic
81+
run: |
82+
tectonic aom.tex
83+
makeindex aom.idx
84+
mv aom.pdf assets/aom-od.pdf
85+
86+
- name: Upload PDF
87+
if: ${{ success() }}
88+
uses: actions/upload-artifact@v4
89+
with:
90+
path: assets/aom-od.pdf
91+
name: aom-od-${{ env.BUILD_DATE }}-${{ env.GITHUB_TAG }}.pdf
92+
if-no-files-found: error
93+
94+
- name: Upload release assets
95+
if: ${{ success() && startsWith(github.ref, 'refs/tags/') }}
96+
id: upload-release-assets
97+
uses: dwenegar/upload-release-assets@v1
98+
env:
99+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
100+
with:
101+
release_id: ${{ needs.create_draft_release.outputs.id }}
102+
assets_path: assets/

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
build/
2+
13
## Core latex/pdflatex auxiliary files:
24
*.aux
35
*.lof

0 commit comments

Comments
 (0)