-
Notifications
You must be signed in to change notification settings - Fork 2
33 lines (32 loc) · 949 Bytes
/
latex_release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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: 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_${{ env.NOW }}.pdf