Update .gitea-ci.yml

This commit is contained in:
jarjar 2025-03-13 12:28:04 +00:00
parent 1cab135136
commit 347996c2a6

View File

@ -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