Skip to content

Commit

Permalink
MV - actions worfklows
Browse files Browse the repository at this point in the history
  • Loading branch information
maperez42 committed Oct 1, 2024
1 parent 244ed8b commit d7a8a46
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
32 changes: 32 additions & 0 deletions .github/workflows/make-it.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Latex Builder

on: [push]

jobs:
make-it:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install LaTex utilities
run: 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
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ name: Latex Builder
on: [push]

jobs:
make-it:
release-it:
permissions:
contents: write
runs-on: ubuntu-latest
if: contains(github.ref, 'master')
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down

0 comments on commit d7a8a46

Please sign in to comment.