Merge branch 'main' of github.com-personal:leomurca/resume

This commit is contained in:
Leonardo Murça 2024-09-20 17:39:37 -03:00
commit b7a02de345

40
.github/workflows/release.yml vendored Normal file
View file

@ -0,0 +1,40 @@
name: Compile Latex and Release PDF
on:
push:
tags:
- 'v*'
jobs:
build_latex:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Set up Git repository
uses: actions/checkout@v3
- name: Compile LaTeX document
uses: xu-cheng/latex-action@v3
with:
root_file: main.tex
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: false
prerelease: false
- name: Upload Release Asset
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 }}
asset_path: ./main.pdf
asset_name: leonardo-murca-resume-${{ github.ref_name }}.pdf
asset_content_type: pdf