Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/workflows/build-latex.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build LaTeX document

on:
push:
release:
types: [published]

permissions:
contents: write

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v4

- name: Compile LaTeX document
uses: xu-cheng/latex-action@v3
with:
root_file: Statuts.tex
extra_fonts: ./fonts/*.ttf
latexmk_use_xelatex: true

- name: Upload PDF file
uses: actions/upload-artifact@v4
with:
name: Compiled LaTeX document
path: "*.pdf"
if-no-files-found: error
retention-days: 5

# Upload pdf file in GitHub release
- if: ${{ github.event_name == 'release'}}
name: Upload PDF file to release
uses: svenstaro/upload-release-action@2b9d2847a97b04d02ad5c3df2d3a27baa97ce689 # v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: "*.pdf"
tag: ${{ github.ref }}
overwrite: true
file_glob: true
body: "Compiled LaTeX document"
15 changes: 0 additions & 15 deletions .travis.yml

This file was deleted.

19 changes: 5 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,9 @@
Statuts Rézoléo 1901
====================
===================

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

Git de travail pour les statuts de l'association Rézoléo
Git de travail des statuts de Rézoléo.
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.

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).

Le PDF des statuts est à télécharger dans l'onglet [releases](https://github.com/rezoleo/statuts/releases).

## Historique

Ancien Etherpad de travail : https://etherpad.rezometz.org/p/statuts_rezoleo

## Remerciements

[`constitution.cls`](https://github.com/maxence-lagalle/statuts-loi1901) (classe pour les statuts) par Maxence Lagalle
La dernière version en vigueur est accessible en préfecture.
310 changes: 175 additions & 135 deletions Statuts.tex

Large diffs are not rendered by default.

42 changes: 0 additions & 42 deletions constitution.cls

This file was deleted.

Binary file added fonts/OpenSans-Bold.ttf
Binary file not shown.
Binary file added fonts/OpenSans-Italic.ttf
Binary file not shown.
Binary file added fonts/OpenSans-Regular.ttf
Binary file not shown.
Binary file added rezoleo_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading