MV - actions worfklows #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Latex Builder | |
on: [push] | |
jobs: | |
release-it: | |
permissions: | |
contents: write | |
runs-on: ubuntu-latest | |
if: contains(github.ref, 'master') | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install LaTex utilities | |
run: sudo apt update && sudo apt-get install -y texlive-full | |
- name: Get version from file | |
id: get_version | |
run: echo "VERSION=version/$(cat version)" >> $GITHUB_ENV | |
- name: Name release from version | |
id: get_release | |
run: echo "RELEASE=release_$(cat version)" >> $GITHUB_ENV | |
- name: Build PDFs | |
run: make | |
- name: Upload PDFs archives | |
uses: actions/upload-artifact@v4 | |
with: | |
name: modules.pdf | |
path: | | |
build/module00.pdf | |
build/module01.pdf | |
build/module02.pdf | |
build/module03.pdf | |
build/module04.pdf | |
- name: Bundle Release | |
uses: softprops/action-gh-release@v2 | |
with: | |
files: | | |
build/module00.pdf | |
build/module01.pdf | |
build/module02.pdf | |
build/module03.pdf | |
build/module04.pdf | |
name: ${{env.RELEASE}} | |
tag_name: ${{env.VERSION}} | |
make_latest: true | |
body_path: CHANGELOG.md |