diff --git a/.gitea-ci.yml b/.gitea-ci.yml index 8f35721..3a23568 100644 --- a/.gitea-ci.yml +++ b/.gitea-ci.yml @@ -4,27 +4,18 @@ on: push: tags: - '*' - jobs: build: - runs-on: texlive/texlive + runs-on: ubuntu-latest steps: - - name: Checkout du dépôt - uses: actions/checkout@v4 - - - name: Compiler le PDF - run: | - mkdir -p package - cd source - pdflatex -output-format=pdf -interaction=nonstopmode -output-directory=../package main.tex - - - name: Renommer le fichier - run: | - TAG_NAME=${{ github.ref_name }} - mv package/main.pdf package/CV-Jarod-CAJNA-${TAG_NAME}.pdf - - - name: Upload PDF en artefact - uses: actions/upload-artifact@v4 + - name: Set up Git repository + uses: https://github.com/actions/checkout@v4 + - name: Compile LaTeX document + uses: https://github.com/xu-cheng/latex-action@v3 with: - name: CV-Jarod-CAJNA-${{ github.ref_name }}.pdf - path: package/CV-Jarod-CAJNA-${{ github.ref_name }}.pdf + root_file: main.tex + - name: Upload PDF file + uses: https://github.com/actions/upload-artifact@v4 + with: + name: CV-Jarod-CAJNA-${{ gitea.ref_name }}.pdf + path: CV-Jarod-CAJNA-${{ gitea.ref_name }}.pdf \ No newline at end of file