Update .gitea-ci.yml
This commit is contained in:
parent
1cab135136
commit
347996c2a6
@ -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
|
||||
Loading…
x
Reference in New Issue
Block a user