-
-
Notifications
You must be signed in to change notification settings - Fork 113
executable file
·96 lines (96 loc) · 2.86 KB
/
prepare-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
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
86
87
88
89
90
91
92
93
94
95
96
name: Prepare releases
on:
push:
tags:
- '*'
jobs:
trigger-flathub_build:
name: Trigger Flathub build bot
runs-on: ubuntu-latest
steps:
- name: Trigger Flathub build
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.TRIGGER_FLATHUB_BUILD }}
repository: ransome1/com.github.ransome1.sleek
event-type: trigger-flathub-build
client-payload: '{"commit_id": "${{ github.sha }}"}'
macos:
name: MacOS (Prepare release)
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest]
steps:
- name: Checkout git repo
uses: actions/checkout@master
- name: Install Node and NPM
uses: actions/setup-node@master
with:
node-version: 18
cache: 'yarn'
- name: Install and build
run: |
yarn --network-timeout 100000
yarn run build
- name: Run Electron Builder
uses: samuelmeuli/action-electron-builder@v1
env:
CSC_LINK: ${{ secrets.CSC_LINK }}
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_ID_PASS: ${{ secrets.APPLE_ID_PASS }}
TEAM_ID: ${{ secrets.TEAM_ID }}
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }}
with:
max_attempts: 5
github_token: ${{ secrets.github_token }}
release: ${{ startsWith(github.ref, 'refs/tags/') }}
windows:
name: Windows (Prepare release)
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest]
steps:
- name: Checkout git repo
uses: actions/checkout@master
- name: Install Node and NPM
uses: actions/setup-node@master
with:
node-version: 18
cache: 'yarn'
- name: Install and build
run: |
yarn --network-timeout 100000
yarn run build
- name: Run Electron Builder
uses: samuelmeuli/action-electron-builder@v1
with:
max_attempts: 5
github_token: ${{ secrets.github_token }}
release: ${{ startsWith(github.ref, 'refs/tags/') }}
linux:
name: Linux (Prepare release)
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- name: Checkout git repo
uses: actions/checkout@master
- name: Install Node and NPM
uses: actions/setup-node@master
with:
node-version: 18
cache: 'yarn'
- name: Install and build
run: |
yarn --network-timeout 100000
yarn run build
- name: Run Electron Builder
uses: samuelmeuli/action-electron-builder@v1
with:
max_attempts: 5
github_token: ${{ secrets.github_token }}
release: ${{ startsWith(github.ref, 'refs/tags/') }}