-
Notifications
You must be signed in to change notification settings - Fork 3
58 lines (49 loc) · 1.57 KB
/
create-templates.yaml
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
name: Generate Templates
on:
push:
tags:
- "*"
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Copy template.typ to other templates
run: |
cp report-template/template.typ singlefile-template/template.typ
cp report-template/template.typ report-template-empty/template.typ
- name: Remove READMEs from other templates
run: |
rm singlefile-template/readme.txt report-template-empty/readme.txt
- name: Upload Singlefile-template
uses: actions/upload-artifact@v2
with:
name: singlefile-template
path: singlefile-template
- name: Upload Report-template
uses: actions/upload-artifact@v2
with:
name: report-template
path: report-template
- name: Upload Singlefile-template
uses: actions/upload-artifact@v2
with:
name: report-template-empty
path: report-template-empty
- name: Zip templates for release upload
run: |
zip -r singlefile-template.zip singlefile-template
zip -r report-template.zip report-template
zip -r report-template-empty.zip report-template-empty
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
singlefile-template.zip
report-template.zip
report-template-empty.zip