Skip to content

Commit

Permalink
ci: Use tagpr output to trigger release (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
gteufelberger authored May 3, 2024
1 parent 863c9d7 commit 8498f6f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
18 changes: 17 additions & 1 deletion .github/workflows/tagpr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,22 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: Songmu/tagpr@v1
- id: tagpr
uses: Songmu/tagpr@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Compile LaTeX document
if: ${{ steps.tagpr.outputs.tag != '' }}
uses: xu-cheng/latex-action@v3
with:
working_directory: src/dacs-sw/control-station-installation/
root_file: main.tex
work_in_root_file_dir: true

- name: Make release with PDFs
if: ${{ steps.tagpr.outputs.tag != '' }}
uses: softprops/action-gh-release@v2
with:
files: |
src/dacs-sw/control-station-installation/main.pdf
2 changes: 1 addition & 1 deletion .tagpr
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@
vPrefix = true
releaseBranch = main
versionFile = -
release = draft
release = false

0 comments on commit 8498f6f

Please sign in to comment.