-
-
Notifications
You must be signed in to change notification settings - Fork 15
53 lines (46 loc) · 1.9 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Release
on:
push:
branches:
- master
tags:
- v*
env:
CTAN_URL: https://mirrors.rit.edu/CTAN
TL_PACKAGES: abstract amscls amsmath anyfontsize blkarray booktabs braket caption extarrows fancyhdr float fontspec graphics hyperref latexmk luatex85 l3packages mathalpha mathtools metafont mhchem multirow needspace newfloat paralist pgfplots physics scalerel sectsty siunitx subfig threeparttable tikz-feynman times tocbibind tocloft tools ulem xcolor xecjk
TL_FONT_PCK: amsfonts fandol inconsolata jknapltx libertinus-fonts psnfss collection-fontsrecommended
jobs:
release:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
env:
SET_PATH: |
export PATH=/tmp/texlive/bin/x86_64-linux:$PATH
steps:
- name: Set up Git repository
uses: actions/checkout@v3
- name: Set Version
run: echo "VERSION=${GITHUB_REF##*/}" >> $GITHUB_ENV
- name: Install TeX Live
run: |
${{ env.SET_PATH }}
wget ${{ env.CTAN_URL }}/systems/texlive/tlnet/install-tl-unx.tar.gz
tar -xzf install-tl-unx.tar.gz
cd install-tl-20* && ./install-tl --profile ../.github/workflows/texlive.profile
tlmgr install ${{ env.TL_PACKAGES }} ${{ env.TL_FONT_PCK }}
tlmgr update --self --all --no-auto-install --repository=${{ env.CTAN_URL }}/systems/texlive/tlnet/
- name: Compile test file
run: |
${{ env.SET_PATH }}
bash release.sh $VERSION
#cd test
#latexmk -xelatex -halt-on-error -shell-escape main
cd release
tar czvf SzaboSolutions-$VERSION.tar.gz SzaboSolutions-$VERSION
- name: Create release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: |
./release/SzaboSolutions-v*.tar.gz