Skip to content

Commit

Permalink
Use softprops/action-gh-release
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarasa24 committed Nov 20, 2024
1 parent b9b23b2 commit 2c66398
Showing 1 changed file with 4 additions and 27 deletions.
31 changes: 4 additions & 27 deletions .github/workflows/latex-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build Beamer Presentation
on:
push:
tags:
- 'v*'
- "v*"

jobs:
build:
Expand Down Expand Up @@ -31,30 +31,7 @@ jobs:
pdflatex -file-line-error -output-directory=presentation presentation/prezentace.tex
pdflatex -file-line-error -output-directory=presentation presentation/prezentace.tex
- name: Upload PDF artifact
uses: actions/upload-artifact@v4
- name: Create release with compiled presentation
uses: softprops/action-gh-release@v2
with:
name: beamer-presentation
path: presentation/prezentace.pdf

- name: Create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false

- name: Upload release asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: presentation/prezentace.pdf
asset_name: prezentace.pdf
asset_content_type: application/pdf
files: presentation/prezentace.pdf

0 comments on commit 2c66398

Please sign in to comment.