forked from jely2002/youtube-dl-gui
-
Notifications
You must be signed in to change notification settings - Fork 68
57 lines (55 loc) · 1.63 KB
/
build-release.yaml
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
name: Build artifacts to link to release
on:
push:
tags:
- '*'
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '20'
- name: Install npm modules
run: npm ci
- name: Build and publish artifact
run: npm_config_yes=true npx electron-builder -p always
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Get version
id: package-version
uses: martinbeentjes/npm-get-version-action@master
with:
environment: production
version: ${{ steps.package-version.outputs.current-version }}
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '20'
- name: Install npm modules
run: npm ci
- name: Build and publish artifact
run: env npm_config_yes=true npx electron-builder -p always
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build and publish portable artifact
run: env npm_config_yes=true npx electron-builder --win portable -p always
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build-mac:
runs-on: macos-11
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '20'
- name: Install npm modules
run: npm ci
- name: Build and publish artifact
run: npm_config_yes=true npx electron-builder -p always
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}