Skip to content

Commit

Permalink
Added release to pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
foorschtbar committed Nov 23, 2022
1 parent 6cbe4a6 commit 5724590
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 24 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Build LaTeX document

on: [push]

jobs:
build:
name: Build LaTeX document
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3

- 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: github.ref == 'refs/heads/master'
steps:
- name: Download artifacts 💾
uses: actions/download-artifact@v3
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"
overwrite: true
file_glob: true
24 changes: 0 additions & 24 deletions .github/workflows/build.yml

This file was deleted.

4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Antrag auf Mitgliedschaft

## Download

siehe [Releases](https://github.com/Westwoodlabs/Mitgliedsantrag/releases).

## Bauen (Docker)

`docker run -v "$(pwd):/workdir" danteev/texlive latexmk -pdf -latexoption=-file-line-error -latexoption=-interaction=nonstopmode -outdir=build 'Mitgliedsantrag Westwoodlabs.tex'`
Expand Down

0 comments on commit 5724590

Please sign in to comment.