[pre-commit.ci] pre-commit autoupdate #2
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: Release | |
on: | |
push: | |
tags: | |
- 'v[0-9]+.[0-9]+.[0-9]+' | |
- 'git$' | |
pull_request: | |
branches: [ "master" ] | |
permissions: | |
contents: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 25 | |
- name: Install dependencies | |
run: | | |
sudo apt install fig2dev texlive-latex-recommended texlive-science | |
- name: Build PDF doc | |
run: | | |
cd doc | |
make | |
- name: Check PDF output | |
run: | | |
ls -l ${{github.workspace}}/doc/*.pdf | |
- name: Create github Release | |
uses: softprops/action-gh-release@v2 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
generate_release_notes: false | |
files: | | |
${{github.workspace}}/doc/*.pdf |