Updated up- and download artifact action #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build LaTeX document | |
on: [push] | |
jobs: | |
build: | |
name: Build LaTeX document | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout ๐๏ธ | |
uses: actions/checkout@v4 | |
- name: Build ๐๏ธ | |
uses: dante-ev/latex-action@latest | |
with: | |
root_file: "Mitgliedsantrag_Westwoodlabs.tex" | |
compiler: latexmk | |
args: -pdf -latexoption=-file-line-error -latexoption=-interaction=nonstopmode | |
- name: Upload build artifacts ๐พ | |
uses: actions/upload-artifact@v3 | |
with: | |
name: "Mitgliedsantrag_Westwoodlabs" | |
path: "Mitgliedsantrag_Westwoodlabs.pdf" | |
release: | |
needs: build | |
name: Release LaTeX document | |
runs-on: ubuntu-latest | |
if: startsWith(github.ref, 'refs/tags/') | |
steps: | |
- name: Download artifacts ๐พ | |
uses: actions/download-artifact@v4 | |
with: | |
name: "Mitgliedsantrag_Westwoodlabs" | |
- name: Display structure of downloaded files ๐ | |
run: ls -R | |
- name: Upload binaries to release ๐ | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: "Mitgliedsantrag_Westwoodlabs.pdf" | |
tag: ${{ github.ref }} | |
overwrite: false | |
release_name: "Mitgliedsantrag Westwoodlabs" |