Skip to content

Commit

Permalink
ci: Rename PDF in CI (#27)
Browse files Browse the repository at this point in the history
so that it's not just `main.pdf` in the end
  • Loading branch information
gteufelberger authored May 12, 2024
1 parent 1179fbf commit 3ea62e3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/compile-latex.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,13 @@ jobs:
root_file: main.tex
work_in_root_file_dir: true

- name: Rename files and move to single release folder
run: |
mkdir release
mv src/dacs-sw/control-station-installation/main.pdf release/sw-control-station-installation.pdf
- name: Upload PDF file
uses: actions/upload-artifact@v4
with:
name: artifacts
path: src/dacs-sw/control-station-installation/main.pdf
path: release/sw-control-station-installation.pdf
9 changes: 7 additions & 2 deletions .github/workflows/tagpr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,15 @@ jobs:
root_file: main.tex
work_in_root_file_dir: true

- name: Rename files and move to single release folder
if: ${{ steps.tagpr.outputs.tag != '' }}
run: |
mkdir release
mv src/dacs-sw/control-station-installation/main.pdf release/sw-control-station-installation.pdf
- name: Make release with PDFs
if: ${{ steps.tagpr.outputs.tag != '' }}
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ steps.tagpr.outputs.tag }}
files: |
src/dacs-sw/control-station-installation/main.pdf
release/sw-control-station-installation.pdf

0 comments on commit 3ea62e3

Please sign in to comment.