Latex 如何将GitHub操作中的工件(与tex文件关联的pdf文件)上载到GitHub中的外部存储库
我的最终目标是:在GitHub的某个存储库中拉取一个TeX文件(例如,通过背面),我想自动覆盖GitHub页面存储库中的相关PDF文件(即在username/username.GitHub.io下),以更新我的html主页。到目前为止,我有以下.yml代码:Latex 如何将GitHub操作中的工件(与tex文件关联的pdf文件)上载到GitHub中的外部存储库,latex,github-pages,github-actions,overleaf,Latex,Github Pages,Github Actions,Overleaf,我的最终目标是:在GitHub的某个存储库中拉取一个TeX文件(例如,通过背面),我想自动覆盖GitHub页面存储库中的相关PDF文件(即在username/username.GitHub.io下),以更新我的html主页。到目前为止,我有以下.yml代码: name: Build LaTeX document on: [push] jobs: build_latex: runs-on: ubuntu-latest steps: - name: Set up Gi
name: Build LaTeX document
on: [push]
jobs:
build_latex:
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v2
- name: Compile LaTeX document
uses: xu-cheng/latex-action@v2
with:
root_file: main.tex
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: PDF
path: main.pdf
- name: Download a Build Artifact
uses: actions/download-artifact@v2.0.9
with:
name: PDF
path: path/to/PDF
它成功地在GitHub UI中生成包含所需pdf文件(main.pdf)的zip文件,并将pdf文件下载到/home/runner/work/repo name/repo name/path/to/pdf
我有两个问题:
cd C:\Users\username\Dropbox\Apps\Overleaf\projectname & latexmk -pdf