-
-
Notifications
You must be signed in to change notification settings - Fork 18
109 lines (91 loc) · 3.14 KB
/
main.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
97
98
99
100
101
102
103
104
105
106
107
108
109
# This is a basic workflow to help you get started with Actions
name: Auto Build
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [ master ]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build_and_deploy_to_pages:
# The type of runner that the job will run on
runs-on: ubuntu-latest
steps:
- name: Build with GDexport
run: |
git clone https://github.com/Gdevelop-game/GDevelop-Open-Game Project
cd Project/build
npm i
npm run build
- name: Upload to GitHub Pages
uses: crazy-max/[email protected]
with:
# Build directory to deploy
build_dir: Project/build/gdExport
# The committer name and email address
committer: Auto Builder
# Commit message
commit_message: Auto Built nightly game build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build_for_linux:
runs-on: ubuntu-latest
steps:
- name: Build with GDexport
run: |
git clone https://github.com/Gdevelop-game/GDevelop-Open-Game Project
cd Project/build
npm i
npm run electron-build
- name: Build Electron app
run: |
cd Project/build/gdExport
npm i --save-dev electron-builder
./node_modules/.bin/electron-builder -l AppImage
- name: Upload a Build Artifact
uses: actions/upload-artifact@v2
with:
# Upload all potential executables
name: linux
path: Project/build/gdExport/dist/*.AppImage
build_for_mac:
runs-on: macos-latest
steps:
- name: Build with GDexport
run: |
git clone https://github.com/Gdevelop-game/GDevelop-Open-Game Project
cd Project/build
npm i
npm run electron-build
- name: Build Electron app
run: |
cd Project/build/gdExport
npm i --save-dev electron-builder
./node_modules/.bin/electron-builder -m dmg
- name: Upload a Build Artifact
uses: actions/upload-artifact@v2
with:
# Upload all potential executables
name: mac
path: Project/build/gdExport/dist/*.dmg
build_for_windows:
runs-on: windows-latest
steps:
- name: Build with GDexport
run: |
git clone https://github.com/Gdevelop-game/GDevelop-Open-Game Project
cd Project/build
npm i
npm run electron-build
- name: Build Electron app
run: |
cd Project/build/gdExport
npm i --save-dev electron-builder
.\node_modules\.bin\electron-builder.cmd -w portable
- name: Upload a Build Artifact
uses: actions/upload-artifact@v2
with:
# Upload all potential executables
name: windows
path: Project/build/gdExport/dist/*.exe