首页 > 解决方案 > 使用 github-action 和 docker-hub 生成乳胶简历参考书目

问题描述

我正在尝试配置 github 操作以在每次推送时使用Awesome-CV生成我的乳胶简历女仆。

特殊之处在于有一些参考书目和一些特定的字体。

所以我想使用一个已经设置好字体的docker 容器。我希望将 PDF 存储在我的 github 存储库中。

我试过这个

name: Build LaTeX document
on: [push]
jobs:
  runMultipleCommands:
    runs-on: ubuntu-latest #it run on a virtual machin
    container:
      image: rekentuig/awesome-cv # use this container
    steps:
      - uses: actions/checkout@v2 # clone the repo in the virtual machine 
      - name: Compile LaTeX documents
      # run in the container the 3 latex com. line to compile
      - run: docker run -v `pwd`:/src awesome-cv /bin/bash -c "cd /src; xelatex cv; biber cv; xelatex cv"

但它不起作用

 .github/workflows/latexcv.yml : .github#L1
every step must define a `uses` or `run` key

标签: dockerlatexgithub-actionsbibtexxelatex

解决方案


推荐阅读