improve Poyinting #36
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: BuildLatex | |
on: | |
push: | |
branches: [ "master" ] | |
tags: | |
- "v*.*.*" | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build_latex: | |
runs-on: ubuntu-latest | |
steps: | |
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." | |
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" | |
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." | |
- name: Set up Git repository | |
uses: actions/checkout@v3 | |
- name: setup_images | |
run: | | |
sudo apt-get update | |
sudo apt install fig2dev transfig inkscape | |
- name: images | |
run: make images | |
- name: compile latex | |
uses: xu-cheng/latex-action@v2 | |
with: | |
root_file: fisica.tex | |
latexmk_shell_escape: true | |
# continue_on_error: true | |
- name: Upload PDF file | |
uses: actions/upload-artifact@v3 | |
with: | |
name: PDF | |
path: fisica.pdf | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: fisica.pdf | |
# - name: test1 | |
# run: sudo apt install apt-file | |
# - name: test2 | |
# run: | | |
# sudo apt-file update | |
# sudo apt-file find "minitoc.sty" | |
#- name: Install Latex | |
# run: sudo apt install texlive-latex-extra texlive-fonts-extra texlive-lang-italian texlive-science fig2dev transfig inkscape | |
#- name: Make | |
# run: make | |