File tree Expand file tree Collapse file tree 1 file changed +8
-37
lines changed
Expand file tree Collapse file tree 1 file changed +8
-37
lines changed Original file line number Diff line number Diff line change 11name : Generate Release PDF
2- on :
2+
3+ on :
34 push :
45 branches :
56 - master
67 paths-ignore :
7- - ' .github/**'
8- - ' .gitignore'
98 - ' **.md'
10- env :
11- TEX_FILE_NAME : algebraic_construction
9+ - ' .gitignore '
10+
1211jobs :
13- build_latex :
14- runs-on : ubuntu-latest
15- permissions :
16- contents : write
17- steps :
18- - name : Set up Git repository
19- uses : actions/checkout@v3
20- - name : Compile LaTeX document
21- uses : xu-cheng/latex-action@v2
22- with :
23- root_file : ${{ env.TEX_FILE_NAME }}.tex
24- - name : Delete old Release
25- uses : actions/github-script@v5
26- with :
27- github-token : ${{ secrets.GITHUB_TOKEN }}
28- script : |
29- const { owner, repo } = context.repo
30- try {
31- const { data: { id } } = await github.rest.repos.getLatestRelease({ owner, repo })
32- await github.rest.repos.deleteRelease({ owner, repo, release_id: id })
33- } catch {}
34- - name : Generate release tag
35- id : tag
36- run : |
37- echo "::set-output name=release_tag::latest_$(date +"%Y-%m-%d_%H-%M")"
38- - name : Release
39- uses : softprops/action-gh-release@v1
40- with :
41- name : latest version
42- body : Latest version of `${{ env.TEX_FILE_NAME }}.pdf`
43- tag_name : ${{ steps.tag.outputs.release_tag }}
44- files : ${{ env.TEX_FILE_NAME }}.pdf
12+ release_pdf :
13+ uses : hooyuser/pdf-ci-templates/.github/workflows/pdf-release.yml@main
14+ with :
15+ TEX_FILE_NAME : algebraic_construction
You can’t perform that action at this time.
0 commit comments