Update build.yml #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 --noResolve | |
- name: Package hooks into tar | |
run: 7z a -bb0 hooks.tar out/* | |
- 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 | |
hooks.types.zip |