-
Notifications
You must be signed in to change notification settings - Fork 0
85 lines (76 loc) · 2.26 KB
/
Copy pathrelease.yml
File metadata and controls
85 lines (76 loc) · 2.26 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
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
78
79
80
81
82
83
84
85
name: Release CI
on:
push:
tags:
- 'v*'
jobs:
build-stage:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- build: linux
os: ubuntu-latest
arch: x86_64
target: x86_64-unknown-linux-gnu
- build: macos
os: macos-latest
arch: x86_64
target: x86_64-apple-darwin
- build: macos
os: macos-latest
arch: aarch64
target: aarch64-apple-darwin
- build: windows
os: windows-latest
arch: x86_64
target: x86_64-pc-windows-msvc
steps:
- name: check out code
uses: actions/checkout@v3
- name: Install dependencies
uses: actions/setup-node@v3
- run: npm install
- if : matrix.os == 'ubuntu-latest'
run: sudo apt-get install rpm
- name: build the app
if: matrix.os == 'windows-latest' || matrix.os == 'ubuntu-latest'
run: npm run build:electron
- if: matrix.os == 'macos-latest' && matrix.arch == 'x86_64'
run: npm run build:mac:dmg:x64
- if: matrix.os == 'macos-latest' && matrix.arch == 'aarch64'
run: npm run build:mac:dmg:arm64
- name: ls build
run: ls -R release/**
- uses: actions/upload-artifact@v3
with:
name: artifacts
path: |
release/**/*windows*32*.*
release/**/*windows*64*.*
release/**/*mac*.*
release/**/*linux*.*
!release/**/*.blockmap
!release/**/*.yml
retention-days: 3
release-stage:
needs: build-stage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Query version number
run: echo "version=${GITHUB_REF:11}" >> $GITHUB_ENV
- uses: actions/download-artifact@v2
with:
name: artifacts
path: artifacts
- name: Create Release
uses: softprops/action-gh-release@master
with:
tag_name: v${{ env.version }}
name: Gostx v${{ env.version }}
body: See the assets to download this version and install.
prerelease: false
generate_release_notes: false
files: 'artifacts/**'