-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
36 additions
and
29 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,37 +12,44 @@ jobs: | |
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Github Actions for build LaTeX and release pdf | ||
# You may pin to the exact commit or the version. | ||
# uses: MaineK00n/latex-actions@dcfee591c3d649889ee769f6fbee81525ac48bd3 | ||
uses: MaineK00n/[email protected] | ||
with: | ||
# github root_tex. this is require when comment is true. | ||
root: mai-joel_maximilian-curriculum_vitae.tex | ||
# github token. this is require when comment is true. | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
# github repository name. this is require when comment is true. | ||
repository: mai-space/curriculum_vitae | ||
# release pdf name. this is require when comment is true. | ||
pdf_name: mai-joel_maximilian-curriculum_vitae | ||
|
||
# - name: Compile LateX | ||
# - name: Github Actions for build LaTeX and release pdf | ||
# # You may pin to the exact commit or the version. | ||
# # uses: vinay0410/tectonic-action@b3138021657a3cdb3823f3980be054ca89e86d81 | ||
# uses: antaljanosbenjamin/compile-latex@v1.0.0 | ||
# # uses: MaineK00n/latex-actions@dcfee591c3d649889ee769f6fbee81525ac48bd3 | ||
# uses: MaineK00n/latex-actions@v0.0.1 | ||
# with: | ||
# file: mai-joel_maximilian-curriculum_vitae.tex | ||
# output-directory: downloads/ | ||
# args: -pdf | ||
# - run: '(test -f downloads/mai-joel_maximilian-curriculum_vitae.pdf && echo PDF exists) || (echo PDF does not exist && exit 1)' | ||
# - name: Create Release | ||
# id: create_release | ||
# uses: actions/create-release@v1 | ||
# with: | ||
# files: | | ||
# downloads/mai-joel_maximilian-curriculum_vitae.pdf | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# # github root_tex. this is require when comment is true. | ||
# root: mai-joel_maximilian-curriculum_vitae.tex | ||
# # github token. this is require when comment is true. | ||
# token: ${{ secrets.GITHUB_TOKEN }} | ||
# # github repository name. this is require when comment is true. | ||
# repository: mai-space/curriculum_vitae | ||
# # release pdf name. this is require when comment is true. | ||
# pdf_name: mai-joel_maximilian-curriculum_vitae | ||
|
||
- name: Compile LateX | ||
# You may pin to the exact commit or the version. | ||
# uses: vinay0410/tectonic-action@b3138021657a3cdb3823f3980be054ca89e86d81 | ||
uses: antaljanosbenjamin/[email protected] | ||
with: | ||
file: mai-joel_maximilian-curriculum_vitae.tex | ||
output-directory: downloads/ | ||
args: -pdf | ||
|
||
- name: Test if pdf build was successful | ||
run: '(test -f downloads/mai-joel_maximilian-curriculum_vitae.pdf && echo PDF exists) || (echo PDF does not exist && exit 1)' | ||
|
||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
with: | ||
files: | | ||
downloads/mai-joel_maximilian-curriculum_vitae.pdf | ||
tag_name: ${{ github.ref }} | ||
release_name: Release ${{ github.ref }} | ||
draft: false | ||
prerelease: false | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# - name: Upload Release Asset | ||
# id: upload_release_asset | ||
|