-
-
Notifications
You must be signed in to change notification settings - Fork 68
102 lines (84 loc) · 2.11 KB
/
continuous.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
# (c) Srevin Saju 2020. All rights reserved
# Licensed under MIT License
# Continuous Integration to release configured AppImages for Altus
name: Continuous
on:
workflow_dispatch:
push:
tags:
- "*.*"
jobs:
AppImage:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 18
- name: Current Directory Structure
run: |
ls
git describe --tags --always
- name: Build Altus
run: |
yarn install
yarn run make -p linux
- name: Upload Appimage
uses: actions/upload-artifact@v3.0.0
with:
name: AppImage
path: "out/make/*.AppImage"
Darwin:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 18
- name: Current Directory Structure
run: |
ls
git describe --tags --always
- name: Build Altus
run: |
yarn install
yarn run make -p darwin --arch="x64,arm64"
- name: Upload DMG
uses: actions/upload-artifact@v3.0.0
with:
name: DMG
path: "out/make/*.dmg"
Windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 18
- name: Current Directory Structure
run: |
ls
git describe --tags --always
- name: Build Altus
run: |
yarn install
yarn run make -p win32
- name: Upload EXE
uses: actions/upload-artifact@v3.0.0
with:
name: EXE
path: "out/make/*.exe"
Release:
needs: [AppImage, Windows, Darwin]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v2
- name: Release
uses: marvinpinto/action-automatic-releases@v1.2.1
with:
prerelease: false
files: |
AppImage
DMG
EXE
repo_token: ${{ secrets.GITHUB_TOKEN }}