Skip to content

Updated up- and download artifact action #11

Updated up- and download artifact action

Updated up- and download artifact action #11

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"