-
Notifications
You must be signed in to change notification settings - Fork 3
38 lines (38 loc) · 1.08 KB
/
main.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
name: CI/CD
on:
pull_request:
branches: main
types: [opened, synchronize, reopened]
push:
branches: main
paths-ignore: [ "README.md", "doc/**" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin' #Eclipse Temurin
- uses: oneteme/automation-scripts/.github/actions/mvn-scan-project@main
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- name: extract version
id: prj_ver
uses: oneteme/automation-scripts/.github/actions/mvn-project-version@main
outputs:
version: ${{ steps.prj_ver.outputs.version }}
#no deploy
release:
needs: build
runs-on: ubuntu-latest
steps:
- uses: oneteme/automation-scripts/.github/actions/github-release-notes@main
with:
version: ${{ needs.build.outputs.version }}
draft: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}