Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mai-space authored Dec 31, 2023
1 parent 5552f48 commit bf77087
Showing 1 changed file with 39 additions and 26 deletions.
65 changes: 39 additions & 26 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,32 +12,45 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4

- 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/[email protected]
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
# uses: MaineK00n/latex-actions@dcfee591c3d649889ee769f6fbee81525ac48bd3
uses: MaineK00n/[email protected]
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.pdf

# - 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
# - 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 }}

- name: Upload Release Asset
id: upload_release_asset
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: downloads/mai-joel_maximilian-curriculum_vitae.pdf
asset_name: mai-joel_maximilian-curriculum_vitae.pdf
asset_content_type: application/pdf
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - name: Upload Release Asset
# id: upload_release_asset
# uses: actions/upload-release-asset@v1
# with:
# upload_url: ${{ steps.create_release.outputs.upload_url }}
# asset_path: downloads/mai-joel_maximilian-curriculum_vitae.pdf
# asset_name: mai-joel_maximilian-curriculum_vitae.pdf
# asset_content_type: application/pdf
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit bf77087

Please sign in to comment.