Update README.md #51
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: New Release of Latex Document | |
on: | |
push: | |
branches: | |
- 'main' | |
jobs: | |
release_latex: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Git repository | |
uses: actions/checkout@v3 | |
- name: Compile LaTeX document | |
uses: xu-cheng/latex-action@v2 | |
with: | |
root_file: main.tex | |
working_directory: article/ | |
continue_on_error: true | |
- name: Create Release | |
run: | | |
echo "BUILD_DATE=$(date +'%d-%b-%Y')" >> $GITHUB_ENV | |
echo "COMPLETE_BUILD_DATE=$(date +'%d-%b-%Y_%h-%mm-%s')" >> $GITHUB_ENV | |
mv article/main.pdf article/artigo.pdf | |
- uses: "marvinpinto/action-automatic-releases@latest" | |
with: | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
automatic_release_tag: "${{ env.COMPLETE_BUILD_DATE }}" | |
prerelease: false | |
title: "Artigo Versao ${{ env.BUILD_DATE }}" | |
files: | | |
article/artigo.pdf |