mirror of
https://github.com/zenlm/papers.git
synced 2026-07-27 03:34:41 +00:00
fix: use apt-get install instead of container for LaTeX
This commit is contained in:
@@ -23,15 +23,18 @@ permissions:
|
||||
jobs:
|
||||
compile-pdfs:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: texlive/texlive:latest
|
||||
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Install LaTeX
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y texlive-full
|
||||
|
||||
- name: Compile all LaTeX papers
|
||||
run: |
|
||||
mkdir -p pdfs
|
||||
@@ -74,19 +77,7 @@ jobs:
|
||||
name: compiled-papers
|
||||
path: pdfs/*.pdf
|
||||
retention-days: 90
|
||||
|
||||
- name: Create release with PDFs
|
||||
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
tag_name: papers-${{ github.sha }}
|
||||
name: Zen Papers - ${{ github.sha }}
|
||||
files: pdfs/*.pdf
|
||||
draft: false
|
||||
prerelease: false
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
|
||||
- name: Commit PDFs back to repository
|
||||
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user