mirror of
https://github.com/felixfoertsch/Bachelorarbeit.git
synced 2026-04-17 06:58:30 +02:00
41 lines
1.4 KiB
YAML
41 lines
1.4 KiB
YAML
# Workflow Version: v7
|
|
name: Build PDF-Snapshot
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- v*
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Set up Git repository
|
|
uses: actions/checkout@v1
|
|
- name: Compile LaTeX document
|
|
uses: dante-ev/latex-action@master
|
|
with:
|
|
args: -xelatex -latexoption=-file-line-error -latexoption=-interaction=nonstopmode
|
|
root_file: main.tex
|
|
working_directory: Work/
|
|
- 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 Artifact
|
|
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 }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
|
|
asset_path: Work/main.pdf
|
|
asset_name: main.pdf
|
|
asset_content_type: application/pdf
|