File tree Expand file tree Collapse file tree 1 file changed +47
-0
lines changed
Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Compile LaTeX and Create Release
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+ - main
8+
9+ jobs :
10+ build-and-release :
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - name : Checkout repository
15+ uses : actions/checkout@v4
16+
17+ - name : Compile LaTeX document
18+ uses : xu-cheng/latex-action@v3
19+ with :
20+ root_file : xmr_btc_atomic_swaps.tex
21+ latexmk_use_xelatex : false
22+ args : -pdf -interaction=nonstopmode -file-line-error
23+
24+ - name : Get short SHA
25+ id : vars
26+ run : echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
27+
28+ - name : Get timestamp
29+ id : timestamp
30+ run : echo "timestamp=$(date +'%Y%m%d-%H%M%S')" >> $GITHUB_OUTPUT
31+
32+ - name : Create Release
33+ id : create_release
34+ uses : softprops/action-gh-release@v1
35+ with :
36+ tag_name : build-${{ steps.timestamp.outputs.timestamp }}-${{ steps.vars.outputs.sha_short }}
37+ name : PDF Build ${{ steps.timestamp.outputs.timestamp }}
38+ body : |
39+ Automated PDF build from commit ${{ github.sha }}
40+
41+ Commit: ${{ github.event.head_commit.message }}
42+ Author: ${{ github.event.head_commit.author.name }}
43+ files : xmr_btc_atomic_swaps.pdf
44+ draft : false
45+ prerelease : false
46+ env :
47+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments