-
Notifications
You must be signed in to change notification settings - Fork 1
61 lines (59 loc) · 1.89 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
on:
push:
branches:
- release
tags:
- "v*"
name: Release
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
name: checkout code
- uses: xu-cheng/texlive-action/full@v1
with:
run: |
apk add zip diffutils
l3build ctan
name: build package
- name: check if generated files are of latest version
run: |
git diff --exit-code
- 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
- name: add presenter-ctan.zip
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: texmf/doc/latex/presenter/presenter-doc.pdf
asset_name: presenter-doc.pdf
asset_content_type: application/pdf
- name: add presenter-ctan.zip
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: presenter-ctan.zip
asset_name: presenter-ctan.zip
asset_content_type: application/x-zip
- name: add presenter.tds.zip
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: build/distrib/tds/presenter.tds.zip
asset_name: presenter.tds.zip
asset_content_type: application/x-zip