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: push:
tags: tags:
- '*' - '*'
jobs: jobs:
build: build:
runs-on: texlive/texlive runs-on: ubuntu-latest
steps: steps:
- name: Checkout du dépôt - name: Set up Git repository
uses: actions/checkout@v4 uses: https://github.com/actions/checkout@v4
- name: Compile LaTeX document
- name: Compiler le PDF uses: https://github.com/xu-cheng/latex-action@v3
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
with: with:
name: CV-Jarod-CAJNA-${{ github.ref_name }}.pdf root_file: main.tex
path: package/CV-Jarod-CAJNA-${{ github.ref_name }}.pdf - 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