diff --git a/.github/workflows/compile-latex.yml b/.github/workflows/compile-latex.yml index 1f994ad..2c324c8 100644 --- a/.github/workflows/compile-latex.yml +++ b/.github/workflows/compile-latex.yml @@ -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 diff --git a/.github/workflows/tagpr.yml b/.github/workflows/tagpr.yml index 30b036d..febf2f4 100644 --- a/.github/workflows/tagpr.yml +++ b/.github/workflows/tagpr.yml @@ -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