-
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (34 loc) · 920 Bytes
/
build.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
name: Publish
on:
push:
tags:
- "*"
jobs:
publish:
name: Publish
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node v20
uses: actions/setup-node@v1
with:
node-version: 20
- name: Install TypeScript
run: npm install typescript --save-dev
- name: Transpile TypeScript
run: npx tsc --outDir dist
- name: Package hooks into tar.gz
run: |
pushd dist
cp ../COPYING .
7z a -bb0 -sdel hooks.tar *
7z a -bb0 -sdel hooks.tar.gz hooks.tar
popd
- name: Release
uses: softprops/action-gh-release@v2
with:
files: |
dist/*