File tree 1 file changed +17
-0
lines changed
1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -19,13 +19,30 @@ jobs:
19
19
- uses : actions/setup-java@v1
20
20
with :
21
21
java-version : 1.11
22
+
23
+ - name : Hent maven version
24
+ run : |
25
+ echo "::set-env name=MVN_VERSION::$(mvn help:evaluate -Dsha1=${TAG} -Dexpression=project.version -q -DforceStdout)"
26
+
22
27
- name : Build artifacts & deploy
23
28
shell : bash
24
29
run : |
30
+ mvn versions:set -DnewVersion=${MVN_VERSION}
25
31
mvn deploy sonar:sonar -e --batch-mode --settings ./.github/.m2/settings.xml --file pom.xml -Dmaven.wagon.http.pool=false -Dchangelist= -Dsha1=-$(git log -1 --pretty='%ad' --date=format:'%Y%m%d%H%M%S')-$(echo $GITHUB_SHA | cut -c1-7) -Dfile.encoding=UTF-8 -Dsonar.projectKey="navikt_fp-tidsserie" -Dsonar.login=${SONAR_TOKEN}
26
32
env :
27
33
GITHUB_USERNAME : x-access-token
28
34
GITHUB_PASSWORD : ${{ secrets.GITHUB_TOKEN }}
29
35
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
30
36
SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
37
+ key :
38
+ - name : Create Release
39
+ id : create_release
40
+ uses : actions/create-release@v1
41
+ env :
42
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
43
+ with :
44
+ tag_name : ${{ env.MVN_VERSION }}
45
+ release_name : Release ${{ env.MVN_VERSION }}
46
+ draft : false
47
+ prerelease : false
31
48
You can’t perform that action at this time.
0 commit comments