-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (36 loc) · 1.07 KB
/
build-project.yml
File metadata and controls
40 lines (36 loc) · 1.07 KB
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
name: Build InsideAgentDev
run-name: ${{ github.actor }} started a build process.
on: [ push ]
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 2
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'oracle'
java-version: '23.0.1'
- run: |
mvn --batch-mode --update-snapshots verify
build:
runs-on: ubuntu-latest
timeout-minutes: 2
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'oracle'
java-version: '23.0.1'
- run: |
mvn package --file pom.xml
- name: Extract Maven project version
run: |
echo "RELEASE_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV
- uses: actions/upload-artifact@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
name: InsideAgentDev-${{env.RELEASE_VERSION}}
path: out/Bot/InsideAgentDev-${{env.RELEASE_VERSION}}.jar
#lint: