-
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (33 loc) · 1.02 KB
/
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
name: "Build"
on:
push:
tags:
- "v*.*.*"
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
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: Run tsc
run: npx tsc --outDir out/
- name: Package hooks into tar
run: pushd out; cp ../repo.json .; 7z a -bb0 hooks.tar *; mv hooks.tar ../; popd
- name: Compress hooks.tar
run: 7z a -bb0 -sdel hooks.tar.gz hooks.tar
- name: Package hooks types
run: 7z a hooks.types.zip types/*
- name: Release
uses: softprops/action-gh-release@v2
with:
files: |
COPYING
hooks.tar.gz