This repository has been archived by the owner on Mar 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (66 loc) · 1.68 KB
/
build.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
58
59
60
61
62
63
64
65
66
67
name: Build Dragonfly Binaries
on:
push:
branches:
- main
schedule:
- cron: "0 0 * * *"
jobs:
CheckVersion:
name: Check Version
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: npm install
- name: Check version
run: node CheckVersion.js
- name: Upload envs
uses: actions/upload-artifact@v1
with:
name: envs
path: env.json
Build:
needs: [CheckVersion]
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
runs-on: "${{ matrix.os }}"
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v1
name: Install Golang
with:
go-version: 1.17
- name: Download artifacts
uses: actions/download-artifact@v1
with:
name: envs
path: ./
- name: Install dependencies
run: npm install
- name: Load env
run: node loadenv.js
- name: Build binaries
if: env.allow_upload == 'true'
run: node Build.js
- name: Android
if: matrix.os == 'ubuntu-latest' && env.allow_upload == 'true'
env:
GOOS: android
run: node Build.js
- name: Upload To Releases
uses: softprops/action-gh-release@v1
if: env.allow_upload == 'true'
continue-on-error: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
name: "Dragonfly Minecraft Bedrock ${{ env.dragonfly_version }}"
tag_name: "${{ env.dragonfly_version }}"
files: |
!BuildOut/*.md
BuildOut/*