-
Notifications
You must be signed in to change notification settings - Fork 18
61 lines (50 loc) · 1.33 KB
/
build.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
name: Build Gearlock Package
on:
push:
branches: [ "Android11-x86_64" ]
paths:
- '.github/**'
- 'src/**'
tags:
- "v*"
pull_request:
branches: [ "Android11-x86_64" ]
paths:
- '.github/**'
- 'src/**'
workflow_dispatch:
inputs:
RELEASE_CONFIG:
description: 'Upload to Releases'
required: true
default: false
type: boolean
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build package
run: |
cd $GITHUB_WORKSPACE
mv $GITHUB_WORKSPACE/src $GITHUB_WORKSPACE/.github/workdir
cd $GITHUB_WORKSPACE/.github
./build
- name: Get current time
uses: josStorer/get-current-time@v2.0.2
id: current-time
with:
format: YYYYMMDD-HHmmss
utcOffset: "+08:00"
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: Libhoudini_Android11_x86_64-${{ steps.current-time.outputs.formattedTime }}
path: |
*.gxp
- name: release
if: github.event.inputs.RELEASE_CONFIG == 'true' || github.ref_type == 'tag'
uses: softprops/action-gh-release@v1
with:
files: |
*.gxp