-
Notifications
You must be signed in to change notification settings - Fork 235
77 lines (67 loc) · 1.85 KB
/
release-assets.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: release-assets
on:
push:
tags:
- v*.*.*
jobs:
release:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
arch: [arm64, amd64]
- os: macos-latest
arch: [arm64, amd64]
- os: windows-latest
arch: [arm64, amd64]
steps:
- name: Check out Git repository
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Enable corepack and pnpm
run: |
corepack enable
corepack prepare pnpm@latest --activate
- name: Install Dependencies
run: pnpm install
- name: build-linux
if: matrix.os == 'ubuntu-latest'
run: pnpm build:linux
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
- name: build-mac
if: matrix.os == 'macos-latest'
run: pnpm build:mac
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
- name: build-win
if: matrix.os == 'windows-latest'
run: pnpm build:win
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
- name: release
uses: softprops/action-gh-release@v2
with:
draft: false
prerelease: false
fail_on_unmatched_files: false
files: |
dist-release/*.exe
dist-release/*.zip
dist-release/*.dmg
dist-release/*.AppImage
dist-release/*.snap
dist-release/*.deb
dist-release/*.rpm
dist-release/*.tar.gz
dist-release/*.blockmap
dist-release/latest.yml
dist-release/latest-mac.yml
dist-release/latest-linux.yml
dist-release/latest-linux-arm64.yml
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}