yaml #43
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
name: LaTeX Build | |
on: | |
push: | |
branches: | |
- master # Change this to match the branch you want to trigger the build on | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Git repository | |
uses: actions/checkout@v2 | |
- name: Compile LaTeX document (EN) with images | |
uses: dante-ev/latex-action@latest | |
with: | |
root_file: CV_Javier_EN.tex | |
compiler: lualatex | |
args: -interaction=nonstopmode -shell-escape | |
- name: Compile LaTeX document (ES) with images | |
uses: dante-ev/latex-action@latest | |
with: | |
root_file: CV_Javier_ES.tex | |
compiler: lualatex | |
args: -interaction=nonstopmode -shell-escape | |
- name: Compile LaTeX document (EN) without images | |
uses: dante-ev/latex-action@latest | |
with: | |
root_file: CV_Javier_EN.tex | |
compiler: lualatex | |
args: -interaction=nonstopmode -shell-escape "\def\includeimagesfalse{} \input{CV_Javier_EN.tex}" -jobname=CV_Javier_EN_lite | |
- name: Compile LaTeX document (ES) without images | |
uses: dante-ev/latex-action@latest | |
with: | |
root_file: CV_Javier_ES.tex | |
compiler: lualatex | |
args: -interaction=nonstopmode -shell-escape "\def\includeimagesfalse{} \input{CV_Javier_ES.tex}" -jobname=CV_Javier_ES_lite | |
- name: Delete previous tag and release | |
uses: dev-drprasad/[email protected] | |
with: | |
tag_name: CV #(required) tag name to delete | |
github_token: ${{ secrets.GITHUB_TOKEN }} # (required) a GitHub token with write access to the repo that needs to be modified | |
delete_release: true #(optional) default: true | |
- name: Create Release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: CV | |
release_name: Release CV | |
draft: false | |
prerelease: false | |
- name: Upload Release Asset EN (Original) | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: ./CV_Javier_EN.pdf | |
asset_name: CV_Javier_EN.pdf | |
asset_content_type: application/pdf | |
- name: Upload Release Asset ES (Original) | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: ./CV_Javier_ES.pdf | |
asset_name: CV_Javier_ES.pdf | |
asset_content_type: application/pdf | |
- name: Upload Release Asset EN (Original) | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: ./CV_Javier_EN_lite.pdf | |
asset_name: CV_Javier_EN_lite.pdf | |
asset_content_type: application/pdf | |
- name: Upload Release Asset ES (Original) | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: ./CV_Javier_ES_lite.pdf | |
asset_name: CV_Javier_ES_lite.pdf | |
asset_content_type: application/pdf | |