-
Notifications
You must be signed in to change notification settings - Fork 63
137 lines (135 loc) · 4.94 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
on:
push:
branches:
- release
tags:
- "v*"
name: Release
jobs:
release-xelatex:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
name: checkout code
- uses: xu-cheng/texlive-action@v2
with:
scheme: full
run: |
apk add zip diffutils
tlmgr update --self
tlmgr update l3build
make build-dev
name: build package with XeLaTeX
- uses: xu-cheng/texlive-action@v2
with:
scheme: full
run: .github/ci/build_all_variants.sh -halt-on-error -time -quiet -xelatex
name: build all variants with XeLaTeX
- uses: xu-cheng/texlive-action@v2
with:
scheme: full
run: .github/ci/gen_cover.sh -halt-on-error -time -quiet -xelatex
name: build cover with XeLaTeX
- run: cat build/*.log
name: display build log
if: ${{ failure() || success() }}
- uses: actions/create-release@latest
id: create_release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: ${{ github.event.head_commit.message }}
draft: true
prerelease: true
- name: add build-maxplus-blue
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: build/build-maxplus-blue.pdf
asset_name: sjtulib-talk-maxplus-blue.pdf
asset_content_type: application/pdf
- name: add build-maxplus-red
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: build/build-maxplus-red.pdf
asset_name: sjtulib-talk-maxplus-red.pdf
asset_content_type: application/pdf
- name: add build-max-red
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: build/build-max-red.pdf
asset_name: sjtulib-talk-max-red.pdf
asset_content_type: application/pdf
- name: add build-min-red
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: build/build-min-red.pdf
asset_name: sjtulib-talk-min-red.pdf
asset_content_type: application/pdf
- name: add covers
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: build/cover.pdf
asset_name: sample-all-covers.pdf
asset_content_type: application/pdf
- name: add ctan zip
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: src/sjtubeamer-ctan.zip
asset_name: sjtubeamer-ctan.zip
asset_content_type: application/zip
- name: add online zip
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: sjtubeamer-online.zip
asset_name: sjtubeamer-online.zip
asset_content_type: application/zip
- name: add devguide
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: src/build/distrib/ctan/sjtubeamer/sjtubeamerdevguide.pdf
asset_name: sjtubeamerdevguide.pdf
asset_content_type: application/pdf
- name: add intro
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: src/build/distrib/ctan/sjtubeamer/sjtubeamer.pdf
asset_name: sjtubeamer.pdf
asset_content_type: application/pdf
- name: add quickstart
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: src/build/distrib/ctan/sjtubeamer/sjtubeamerquickstart.pdf
asset_name: sjtubeamerquickstart.pdf
asset_content_type: application/pdf