Skip to content

Commit d7674e3

Browse files
committed
Added base Github Actions Workflow
1 parent 3203b3e commit d7674e3

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/build.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,43 @@
11

2+
# This is a basic workflow to help you get started with Actions
3+
4+
name: CI
5+
6+
# Controls when the action will run. Triggers the workflow on push or pull request
7+
# events but only for the master branch
8+
on:
9+
push:
10+
branches:
11+
- master
12+
- development
13+
release:
14+
types: [created]
15+
jobs:
16+
build:
17+
defaults:
18+
run:
19+
working-directory:
20+
AhMyth-Server
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v2
24+
- name: Setup Node.js environment
25+
uses: actions/[email protected]
26+
with:
27+
node-version: 10.x
28+
- name: Install dependencies
29+
run: |
30+
npm i
31+
- name: Build Linux app (32 bit)
32+
run: npm run build:linux32
33+
- name: Build Linux app (64 bit)
34+
run: npm run build:linux64
35+
- name: Build Windows App (32 bit)
36+
run: npm run build:win32
37+
- name: Build Windows App (64 bit)
38+
run: npm run build:win64
39+
- name: Upload - push to artifact files
40+
uses: actions/upload-artifact@v1
41+
with:
42+
name: AhMyth
43+
path: /dist/

0 commit comments

Comments
 (0)