Skip to content

Commit de4edb7

Browse files
authored
AG 2025 (#4)
* Update latex compilation * AG 2025 * Fix CI ╰(‵□′)╯ * Guillemets français
1 parent 23114ff commit de4edb7

File tree

9 files changed

+223
-206
lines changed

9 files changed

+223
-206
lines changed

.github/workflows/build-latex.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Build LaTeX document
2+
3+
on:
4+
push:
5+
release:
6+
types: [published]
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Set up Git repository
16+
uses: actions/checkout@v4
17+
18+
- name: Compile LaTeX document
19+
uses: xu-cheng/latex-action@v3
20+
with:
21+
root_file: Statuts.tex
22+
extra_fonts: ./fonts/*.ttf
23+
latexmk_use_xelatex: true
24+
25+
- name: Upload PDF file
26+
uses: actions/upload-artifact@v4
27+
with:
28+
name: Compiled LaTeX document
29+
path: "*.pdf"
30+
if-no-files-found: error
31+
retention-days: 5
32+
33+
# Upload pdf file in GitHub release
34+
- if: ${{ github.event_name == 'release'}}
35+
name: Upload PDF file to release
36+
uses: svenstaro/upload-release-action@2b9d2847a97b04d02ad5c3df2d3a27baa97ce689 # v2
37+
with:
38+
repo_token: ${{ secrets.GITHUB_TOKEN }}
39+
file: "*.pdf"
40+
tag: ${{ github.ref }}
41+
overwrite: true
42+
file_glob: true
43+
body: "Compiled LaTeX document"

.travis.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

README.md

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,9 @@
11
Statuts Rézoléo 1901
2-
====================
2+
===================
33

4-
[![Build Status](https://travis-ci.org/rezoleo/statuts.svg?branch=master)](https://travis-ci.org/rezoleo/statuts)
4+
![Build status](https://github.com/rezoleo/statuts/actions/workflows/build-latex.yml/badge.svg)
55

6-
Git de travail pour les statuts de l'association Rézoléo
6+
Git de travail des statuts de Rézoléo.
7+
Les statuts sont compilés par Github Actions. Si une release est créée, alors le PDF est ajouté à la release. Sinon, il est simplement ajouté aux artifacts.
78

8-
Travis CI compile automatiquement à chaque push pour vérifier que le LaTeX est valide. Si jamais un commit est taggé (`git tag 2017-05-05` par exemple, puis `git push --tags`), Travis compile le PDF puis l'ajoute à la release (cf. ci-dessous).
9-
10-
Le PDF des statuts est à télécharger dans l'onglet [releases](https://github.com/rezoleo/statuts/releases).
11-
12-
## Historique
13-
14-
Ancien Etherpad de travail : https://etherpad.rezometz.org/p/statuts_rezoleo
15-
16-
## Remerciements
17-
18-
[`constitution.cls`](https://github.com/maxence-lagalle/statuts-loi1901) (classe pour les statuts) par Maxence Lagalle
9+
La dernière version en vigueur est accessible en préfecture.

Statuts.tex

Lines changed: 175 additions & 135 deletions
Large diffs are not rendered by default.

constitution.cls

Lines changed: 0 additions & 42 deletions
This file was deleted.

fonts/OpenSans-Bold.ttf

128 KB
Binary file not shown.

fonts/OpenSans-Italic.ttf

133 KB
Binary file not shown.

fonts/OpenSans-Regular.ttf

128 KB
Binary file not shown.

rezoleo_logo.png

21.7 KB
Loading

0 commit comments

Comments
 (0)