forked from rstudio/tinytex-releases
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
55 lines (51 loc) · 1.88 KB
/
appveyor.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
54
55
image: Ubuntu
install:
- "[ ! -z ${GH_KEY} ] || exit 0"
- eval "$(ssh-agent -s)"
- echo ${GH_KEY} | base64 -d > ~/id_rsa
- chmod 0600 ~/id_rsa
- ssh-add ~/id_rsa
- export CURRENT_TAG=$(date "+%Y.%m")
- git checkout master
- git tag v${CURRENT_TAG} || exit 0 # if unable to apply the tag, the tag must exist, so exit
- export TINYTEX_RELEASE=true
- |
for EXT in zip tgz tar.gz
do
for BASE in '' -0 -1
do
wget https://yihui.org/tinytex/TinyTeX${BASE}.${EXT}
done
done
- sed -i -E "s|(\s*<version>)([0-9.]+)(</version>\s*)|\1${CURRENT_TAG}\3|" choco/tinytex.nuspec
- sed -i -E "s|(\s*checksum\s*=\s*')([0-9a-f]{32})('\\s*)|\1$(md5sum TinyTeX-1.zip | cut -d' ' -f1)\3|" choco/tools/chocolateyinstall.ps1
- git config user.email "[email protected]"
- git config user.name "Yihui Xie"
- git add -u
- git diff-index --quiet HEAD || git commit -m"TinyTeX release v${CURRENT_TAG}"
- git tag -f v${CURRENT_TAG} # actually tag this commit
- git push --tags [email protected]:${APPVEYOR_REPO_NAME}.git master
build: off
artifacts:
- path: TinyTeX*.tar.gz
name: Linux binaries
- path: TinyTeX*.tgz
name: macOS binaries
- path: TinyTeX*.zip
name: Windows binaries
deploy:
provider: GitHub
repository: yihui/tinytex-releases
tag: v${CURRENT_TAG}
release: TinyTeX v${CURRENT_TAG}
description: >
`TinyTeX-0` contains the `infraonly` scheme of TeX Live, without any LaTeX
packages. `TinyTeX-1` contains enough LaTeX packages to compile R Markdown
documents. `TinyTeX` contains even more LaTeX packages. The `zip` packages
are for Windows. The `tgz` packages are for macOS. The `tar.gz` packages are
for Linux. Please see https://github.com/yihui/tinytex-releases for more info.
auth_token:
secure: 7J9/ZS/EeHhAuxS+mtlT7mPKyLSEmXHRXK1fhBGSptLTmcIFqTbdRHRcTcgEB89n
on:
branch: master
TINYTEX_RELEASE: true