-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (33 loc) · 1.08 KB
/
Copy pathrelease.yml
File metadata and controls
42 lines (33 loc) · 1.08 KB
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
name: Release
on:
push:
tags:
- 'v*'
workflow_dispatch:
permissions:
contents: write
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- run: npm run pack:win
- shell: pwsh
run: |
$d = "dist/TerminalHub-win32-x64"
Get-ChildItem "$d/locales" | Where-Object { $_.Name -notmatch '^(es|es-419|en-US|en-GB)\.pak$' } | Remove-Item
Remove-Item -Recurse -Force "$d/resources/app/node_modules/@lydell/node-pty-linux-x64" -ErrorAction SilentlyContinue
Compress-Archive -Path $d -DestinationPath dist/TerminalHub-win64-portable.zip
- uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: dist/TerminalHub-win64-portable.zip
- uses: actions/upload-artifact@v4
if: "!startsWith(github.ref, 'refs/tags/')"
with:
name: TerminalHub-win64-portable
path: dist/TerminalHub-win64-portable.zip