-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (41 loc) · 995 Bytes
/
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
name: Build
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: sdkman/sdkman-action@main
id: sdkman
with:
candidate: java
version: 17.0.9-amzn
- name: Set up Kscript
run: |
source $HOME/.sdkman/bin/sdkman-init.sh
sdk install kscript 4.2.2
sdk use kscript 4.2.2
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
# - name: Setup Gradle
# uses: gradle/gradle-build-action@v2
- name: Build
run: |
source $HOME/.sdkman/bin/sdkman-init.sh
./build.sh
- name: artefact
uses: actions/upload-artifact@v3
with:
name: androidprojectgenerator
path: androidprojectgenerator.jar
retention-days: 1