Skip to content

Commit

Permalink
Update latex_release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
filipecancio authored Nov 26, 2023
1 parent 5546701 commit 29cb98e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/latex_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,24 @@ jobs:
steps:
- name: Set up Git repository
uses: actions/checkout@v3
env:
NOW: $(date +'%Y-%m-%d')
- name: Compile LaTeX document
uses: xu-cheng/latex-action@v2
with:
root_file: main.tex
working_directory: article/
continue_on_error: true
- name: Rename file
env:
NOW: $(date +'%Y-%m-%d')
run: mv article/main.pdf article/artigo_versao_${{ env.NOW }}.pdf
- name: Create Release
uses: "marvinpinto/action-automatic-releases@latest"
env:
NOW: $(date +'%Y-%m-%d')
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: false
title: "Artigo Versao ${{ env.NOW }}"
files: |
article/artigo_versao_final.pdf
article/artigo_versao_${{ env.NOW }}.pdf

0 comments on commit 29cb98e

Please sign in to comment.