fix Github action order #14
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: Build LaTeX document | |
on: [push] | |
permissions: | |
contents: write | |
jobs: | |
build_latex: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Git repository | |
uses: actions/checkout@v4 | |
- name: Create tag | |
id: create_tag | |
run: | | |
tag_name="v1.0.${{ github.run_number }}" | |
git tag $tag_name | |
git push origin $tag_name | |
- name: Compile LaTeX document | |
uses: xu-cheng/latex-action@v3 | |
with: | |
working_directory: src | |
root_file: all.tex | |
latexmk_shell_escape: true | |
# - name: Upload PDF file | |
# uses: actions/upload-artifact@v4 | |
# with: | |
# name: Epp | |
# path: src/all.pdf | |
- name: Release | |
uses: softprops/[email protected] | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
make_latest: true | |
generate_release_notes: true | |
preserve_order: true | |
files: src/all.pdf | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |