File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change 25
25
name : build-artifact
26
26
- name : Quality gate
27
27
run : ./gradlew sonar -Dsonar.token=${{ secrets.SONAR_TOKEN }} -Dsonar.gradle.skipCompile=true -Dsonar.host.url=https://sonarcloud.io
28
+ snapshot :
29
+ runs-on : ubuntu-latest
30
+ needs : build
31
+ steps :
32
+ - uses : actions/checkout@v4
33
+ - name : Configure Java version
34
+ uses : actions/setup-java@v4
35
+ with :
36
+ java-version : ' 21'
37
+ distribution : ' temurin'
38
+ architecture : x64
39
+ - name : Publish artifacts
40
+ run : |
41
+ echo "Github ref: ${GITHUB_REF}"
42
+ NEW_VERSION=$(echo "${GITHUB_REF}" | cut -d "/" -f3)
43
+ echo "New version: ${NEW_VERSION}-SNAPSHOT
44
+ echo "Github username: ${GITHUB_ACTOR}"
45
+ ./gradlew -Pversion=${NEW_VERSION}-SNAPSHOT publish -x check
46
+ env :
47
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
48
+
Original file line number Diff line number Diff line change 23
23
architecture : x64
24
24
- name : Publish artifacts
25
25
run : |
26
+ echo "Github ref: ${GITHUB_REF}"
26
27
NEW_VERSION=$(echo "${GITHUB_REF}" | cut -d "/" -f3)
27
28
echo "New version: ${NEW_VERSION}"
28
29
echo "Github username: ${GITHUB_ACTOR}"
You can’t perform that action at this time.
0 commit comments