Skip to content

Commit 99a1159

Browse files
authored
Update latex-builder.yml
1 parent 09d5a97 commit 99a1159

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/latex-builder.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
name: Latex Builder
23

34
on: [push]
@@ -13,8 +14,9 @@ jobs:
1314
- name: Install LaTex utilities
1415
run: sudo apt update && sudo apt-get install -y texlive-full
1516
- name: Get version from file
16-
run: echo "VERSION=version/$(cat version)" >> $GITHUB_ENV
17-
- name: Attempting to build PDFs
17+
run: echo "::set-output name=version::$(cat version)"
18+
id: version
19+
- name: Build PDFs
1820
run: make
1921
release-it:
2022
permissions:
@@ -25,9 +27,14 @@ jobs:
2527
steps:
2628
- name: Checkout repository
2729
uses: actions/checkout@v4
30+
- name: Install LaTex utilities
31+
run: sudo apt update && sudo apt-get install -y texlive-full
2832
- name: Get version from file
2933
id: get_version
30-
run: echo "VERSION=$(cat version)" >> "$GITHUB_OUTPUT"
34+
run: echo "VERSION=version/$(cat version)" >> $GITHUB_ENV
35+
- name: Name release from version
36+
id: get_release
37+
run: echo "RELEASE=release_$(cat version)" >> $GITHUB_ENV
3138
- name: Build PDFs
3239
run: make
3340
- name: Upload PDFs archives
@@ -52,4 +59,4 @@ jobs:
5259
name: ${{env.RELEASE}}
5360
tag_name: ${{env.VERSION}}
5461
make_latest: true
55-
body_path: CHANGELOG.md
62+
body_path: CHANGELOG.md

0 commit comments

Comments
 (0)