mirror of
https://github.com/soconnor0919/resume-cv.git
synced 2025-12-15 07:24:43 -05:00
refactor: use container job strategy for gitea compatibility
This commit is contained in:
36
.github/workflows/compile-latex.yml
vendored
36
.github/workflows/compile-latex.yml
vendored
@@ -13,12 +13,13 @@ permissions:
|
|||||||
jobs:
|
jobs:
|
||||||
build-public:
|
build-public:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container: ghcr.io/xu-cheng/texlive-alpine:latest
|
||||||
steps:
|
steps:
|
||||||
|
- name: Install system dependencies
|
||||||
|
run: apk add --no-cache git gettext bash
|
||||||
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install gettext
|
|
||||||
run: sudo apt-get update && sudo apt-get install -y gettext
|
|
||||||
|
|
||||||
- name: Create public info file
|
- name: Create public info file
|
||||||
env:
|
env:
|
||||||
PERSONAL_NAME: ${{ secrets.PERSONAL_NAME || github.repository_owner }}
|
PERSONAL_NAME: ${{ secrets.PERSONAL_NAME || github.repository_owner }}
|
||||||
@@ -55,13 +56,10 @@ jobs:
|
|||||||
- name: Create TeX Live directory
|
- name: Create TeX Live directory
|
||||||
run: mkdir -p /tmp/texlive
|
run: mkdir -p /tmp/texlive
|
||||||
|
|
||||||
- name: Set up TeX Live
|
- name: Compile LaTeX
|
||||||
uses: xu-cheng/latex-action@v4
|
run: |
|
||||||
with:
|
latexmk -pdf -file-line-error -halt-on-error -interaction=nonstopmode resume.tex
|
||||||
root_file: |
|
latexmk -pdf -file-line-error -halt-on-error -interaction=nonstopmode cv.tex
|
||||||
resume.tex
|
|
||||||
cv.tex
|
|
||||||
latexmk_use_xelatex: false
|
|
||||||
|
|
||||||
- name: Upload Public PDFs as Release
|
- name: Upload Public PDFs as Release
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
@@ -102,13 +100,14 @@ jobs:
|
|||||||
|
|
||||||
build-private:
|
build-private:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container: ghcr.io/xu-cheng/texlive-alpine:latest
|
||||||
if: github.actor == github.repository_owner
|
if: github.actor == github.repository_owner
|
||||||
steps:
|
steps:
|
||||||
|
- name: Install system dependencies
|
||||||
|
run: apk add --no-cache git gettext bash
|
||||||
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install gettext
|
|
||||||
run: sudo apt-get update && sudo apt-get install -y gettext
|
|
||||||
|
|
||||||
- name: Create private info file
|
- name: Create private info file
|
||||||
env:
|
env:
|
||||||
PERSONAL_NAME: ${{ secrets.PERSONAL_NAME || github.repository_owner }}
|
PERSONAL_NAME: ${{ secrets.PERSONAL_NAME || github.repository_owner }}
|
||||||
@@ -151,13 +150,10 @@ jobs:
|
|||||||
- name: Create TeX Live directory
|
- name: Create TeX Live directory
|
||||||
run: mkdir -p /tmp/texlive
|
run: mkdir -p /tmp/texlive
|
||||||
|
|
||||||
- name: Set up TeX Live
|
- name: Compile LaTeX
|
||||||
uses: xu-cheng/latex-action@v4
|
run: |
|
||||||
with:
|
latexmk -pdf -file-line-error -halt-on-error -interaction=nonstopmode resume.tex
|
||||||
root_file: |
|
latexmk -pdf -file-line-error -halt-on-error -interaction=nonstopmode cv.tex
|
||||||
resume.tex
|
|
||||||
cv.tex
|
|
||||||
latexmk_use_xelatex: false
|
|
||||||
|
|
||||||
- name: Upload Private PDFs
|
- name: Upload Private PDFs
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
|
|||||||
Reference in New Issue
Block a user