Skip to content

Commit 18429c0

Browse files
authored
Create CI to publish zipped templates
1 parent ce94470 commit 18429c0

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/main.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "*.*.*"
7+
8+
jobs:
9+
publish:
10+
name: Publish ${{ matrix.template }}
11+
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
template: [graduation-thesis, proposal-report, lab-report]
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Zip files under ./graduation-thesis
20+
uses: montudor/[email protected]
21+
with:
22+
args: zip -qq -r ./${{ matrix.template }}.zip ./${{ matrix.template }}
23+
- name: Upload ${{ matrix.template }}.zip to release
24+
uses: svenstaro/[email protected]
25+
with:
26+
repo_token: ${{ secrets.GITHUB_TOKEN }}
27+
file: ${{ matrix.template }}.zip
28+
asset_name: ${{ matrix.template }}.zip
29+
tag: ${{ github.ref }}

0 commit comments

Comments
 (0)