From 29cb98e9b2c41c8249f104609ccf61a4c4709a2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filipe=20C=C3=A2ncio?= Date: Sun, 26 Nov 2023 20:57:40 -0300 Subject: [PATCH] Update latex_release.yml --- .github/workflows/latex_release.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/latex_release.yml b/.github/workflows/latex_release.yml index b768e37..8ba4f7a 100644 --- a/.github/workflows/latex_release.yml +++ b/.github/workflows/latex_release.yml @@ -10,8 +10,6 @@ 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: @@ -19,13 +17,17 @@ jobs: 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