Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed release workflow. #122

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions .github/workflows/new_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
push:
tags:
- v*.*.*
workflow_dispatch:

jobs:
build:
Expand All @@ -17,12 +18,14 @@ jobs:
uses: xu-cheng/latex-action@v2
with:
root_file: "*.tex"
working_directory: latex/
work_in_root_file_dir: true
glob_root_file: true
- name: Upload PDF file
uses: actions/upload-artifact@v3
with:
name: PDF
path: "*.pdf"
path: "./latex/*.pdf"

release:
runs-on: ubuntu-latest
Expand All @@ -33,7 +36,8 @@ jobs:
uses: actions/download-artifact@v3
with:
name: PDF

- name: Rename PDF
run: "mv main.pdf Studienarbeit_Authentifizierung_von_Benutzern_mittels_Sprechererkennung.pdf"
- name: Create release
uses: "marvinpinto/action-automatic-releases@latest"
with:
Expand Down Expand Up @@ -63,13 +67,13 @@ jobs:
</body>
</html>
EOL

- name: Download build
uses: actions/download-artifact@v3
with:
name: PDF
path: public

- name: View downloaded artifacts
run: ls -R
working-directory: public
Expand All @@ -81,4 +85,4 @@ jobs:
target_branch: gh-pages
build_dir: public
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion latex/main.tex
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
\def\vBearbeitungsort{Friedrichshafen} %% %%
\def\vBetreuer{Prof. Dr. Jürgen Schneider} %% Vorname Nachname

\def\vAbgabedatum{\today} %% DD. MONTH YYYY
\def\vAbgabedatum{17. Juli 2023} %% DD. MONTH YYYY
\def\vBearbeitungszeitraum{01.10.2022 - 17.07.2023} %% DD.MM.YYYY - DD.MM.YYYY


Expand Down