-
Notifications
You must be signed in to change notification settings - Fork 6
35 lines (30 loc) · 886 Bytes
/
build.yml
File metadata and controls
35 lines (30 loc) · 886 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
33
34
35
name: Build branches
on:
push:
branches-ignore:
- 'main'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Scm
uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
cache: 'maven'
- name: Configure Maven Settings
run : cp .github/workflows/settings.xml $HOME/.m2/settings.xml
- name: Compute version
id: compute_version
uses: mathieudutour/github-tag-action@v6.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
dry_run: true
release_branches: ".*"
- name: Build with Maven
run: |
echo "[INFO] if merged, this build would be deployed in koson:${{ steps.compute_version.outputs.new_version }}"
mvn clean test