forked from mkkhedawat/rest.ground
-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (49 loc) · 1.46 KB
/
release.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
44
45
46
47
48
49
50
51
52
53
54
55
name: Publish Binaries
on:
workflow_dispatch:
push:
tags:
- '*'
branches:
- main
pull_request:
branches:
- main
env:
RELEASE_VERSION: ${{ github.event.inputs.version }}
IS_PRERELEASE: ${{ contains(github.event.inputs.version, 'alpha') || contains(github.event.inputs.version, 'beta') }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
build-electron-windows:
runs-on: windows-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- name: Node 18
uses: actions/setup-node@v3
with:
node-version: 18
- name: Build UI
working-directory: .
env:
NODE_OPTIONS: "--max_old_space_size=6144"
run: |
npm ci
npm run app-package
Compress-Archive -Path packages\insomnia\dist\win-unpacked\* -DestinationPath rest.ground-"$env:RELEASE_VERSION".zip
- name: Publish
uses: ncipollo/release-action@v1
if: ${{ startsWith(github.ref, 'refs/tags/') }}
with:
artifacts: "packages/insomnia/dist/*.exe,packages/insomnia/dist/squirrel-windows/*.exe,./*.zip"
allowUpdates: true
updateOnlyUnreleased: true
- name: Archive artifacts
uses: actions/upload-artifact@v4
with:
name: artifacts
path: |-
packages/insomnia/dist/*.exe
packages/insomnia/dist/squirrel-windows/*.exe
./*.zip