Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Working on github actions #3

Closed
lrnv opened this issue Feb 1, 2022 · 1 comment
Closed

Working on github actions #3

lrnv opened this issue Feb 1, 2022 · 1 comment

Comments

@lrnv
Copy link

lrnv commented Feb 1, 2022

I have troubles making this work on github actions ? I have a github action that looks like :

---
name: "Release pdf"

on:
  push:
    branches:
      - "master"

jobs:
  release_cv:
    name: "Release CV"
    runs-on: ubuntu-latest
    steps:
    - name: Checkout master
      uses: actions/checkout@v1
    - name: Compile CV
      uses: xu-cheng/latex-action@master
      with:
        root_file: CV.tex
    - name: Check pdf file
      run: |
        file CV.pdf | grep -q ' PDF '
    - name: "Upload"
      uses: "marvinpinto/action-automatic-releases@latest"
      with:
        repo_token: "${{ secrets.GITHUB_TOKEN }}"
        automatic_release_tag: "latest"
        prerelease: true
        title: "Build"
        files: |
          CV.pdf

which is supposed to release my CV online. It works great, and since it runs on github actions Hooks are not possible.

Adding do './tex/gitinfo2.pm'; to my .latexmkrc only yields :

sh: git: not found
sh: git: not found
sh: git: not found

while running gitinfo2.pm. I suppose this is because standard git commands do not work in a github action context. Do you think there is still something we can do ?

@lrnv
Copy link
Author

lrnv commented Feb 1, 2022

Nevermind, I just installed perl and ran do './tex/gitinfo2.pm before running latexmk, writting things in gitHeadLocal.gin instead of .git/.... It worked like a charm.

@lrnv lrnv closed this as completed Feb 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant