-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (30 loc) · 787 Bytes
/
ci.yml
File metadata and controls
32 lines (30 loc) · 787 Bytes
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
name: Continuous Integration
on:
push:
branches: [ 'main' ]
paths:
- src/**
- build.gradle
- gradle.properties
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v2
- name: Set up JDK 21
uses: actions/setup-java@v2
with:
java-version: '21'
distribution: 'adopt'
- name: Set build number
run: sed -i "s/undefined/$GITHUB_RUN_NUMBER/g" gradle.properties
- name: Grant execute permission
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build
- name: Publish artifacts
uses: actions/upload-artifact@v2
with:
name: Artifacts for ${{ github.sha }}
path: build/libs/