@@ -36,35 +36,35 @@ jobs:
36
36
runs-on : ubuntu-latest
37
37
38
38
steps :
39
- - uses : actions/checkout@v3 # checkout sources
39
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 # checkout sources
40
40
with :
41
41
ref : ${{ github.head_ref }}
42
42
fetch-depth : 0
43
43
44
44
- name : Resolve new release version
45
45
id : release_version
46
- uses :
lukashornych/[email protected]
46
+ uses : lukashornych/semantic-calendar-version@0f83ab20d3764a08d5746e6501f96c76f0a2d513 # v1.1.3
47
47
with :
48
48
prefix : ' v'
49
49
year_switch_mode : ' OnMinor'
50
50
minor-identifier : ' /feat(?:\\([^)]+\\))?:/'
51
51
52
52
- name : Setup Java JDK
53
- uses : actions/setup-java@v3 # setup JDK 17 for building
53
+ uses : actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4.6.0 setup JDK 17 for building
54
54
with :
55
- distribution : ' temurin'
56
- java-version : ' 17'
57
- cache : ' maven'
58
- server-id : ossrh
59
- server-username : MAVEN_USERNAME
60
- server-password : MAVEN_CENTRAL_TOKEN
61
- gpg-private-key : ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
62
- gpg-passphrase : MAVEN_GPG_PASSPHRASE
55
+ distribution : ' temurin'
56
+ java-version : ' 17'
57
+ cache : ' maven'
58
+ server-id : ossrh
59
+ server-username : MAVEN_USERNAME
60
+ server-password : MAVEN_CENTRAL_TOKEN
61
+ gpg-private-key : ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
62
+ gpg-passphrase : MAVEN_GPG_PASSPHRASE
63
63
64
64
- name : Build with Maven # run Maven without tests (tests must pass in dev branch)
65
65
run : |
66
- export CURRENT_VERSION="${{ steps.release_version.outputs.version }}"
67
- export NEW_VERSION="$( echo ${CURRENT_VERSION} | sed 's/^v//; s/-.*//')"
66
+ export SANITIZED_VERSION=$(echo "$EVITA_BUILD_VERSION" | tr -d '\r\n')
67
+ export NEW_VERSION="$( echo "${SANITIZED_VERSION}" | sed 's/^v//; s/-.*//')"
68
68
echo $NEW_VERSION > version.txt
69
69
echo "Version: $(cat version.txt)"
70
70
mvn versions:set -DnewVersion=$NEW_VERSION
@@ -84,28 +84,28 @@ jobs:
84
84
cp 'evita_server/dist/logback.xml' './dist'
85
85
86
86
- name : Create .zip of dist
87
- uses : thedoctor0/zip-release@0 .7.1
87
+ uses : thedoctor0/zip-release@b57d897cb5d60cb78b51a507f63fa184cfe35554 # v0 .7.6
88
88
with :
89
89
type : ' zip'
90
90
filename : ' dist.zip'
91
91
path : ' ./dist'
92
92
93
93
- name : Create .tar.gz of dist
94
- uses : thedoctor0/zip-release@0 .7.1
94
+ uses : thedoctor0/zip-release@b57d897cb5d60cb78b51a507f63fa184cfe35554 # v0 .7.6
95
95
with :
96
96
type : ' tar'
97
97
filename : ' dist.tar.gz'
98
98
path : ' ./dist'
99
99
100
100
- name : Create release
101
101
id : create_release
102
- uses : release-drafter/release-drafter@v5
102
+ uses : release-drafter/release-drafter@b1476f6e6eb133afa41ed8589daba6dc69b4d3f5 # v6.1.0
103
103
with :
104
104
version : ${{ steps.release_version.outputs.version }}
105
105
publish : true
106
106
107
107
- name : Upload dist.zip to release
108
- uses : actions/upload-release-asset@v1
108
+ uses : actions/upload-release-asset@64e5e85fc528f162d7ba7ce2d15a3bb67efb3d80 # v1.0.1
109
109
if : success()
110
110
with :
111
111
upload_url : ${{ steps.create_release.outputs.upload_url }}
@@ -114,7 +114,7 @@ jobs:
114
114
asset_content_type : application/zip
115
115
116
116
- name : Upload dist.tar.gz to release
117
- uses : actions/upload-release-asset@v1
117
+ uses : actions/upload-release-asset@64e5e85fc528f162d7ba7ce2d15a3bb67efb3d80 # v1.0.1
118
118
if : success()
119
119
with :
120
120
upload_url : ${{ steps.create_release.outputs.upload_url }}
@@ -123,14 +123,14 @@ jobs:
123
123
asset_content_type : application/gzip
124
124
125
125
- name : Upload evitaDB server artifact # upload `evita-server.jar` for `docker-latest.yml` to deploy to DockerHub
126
- uses : actions/upload-artifact@v4
126
+ uses : actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
127
127
if : success()
128
128
with :
129
129
name : evita-server.jar
130
130
path : ' evita_server/target/evita-server.jar'
131
131
132
132
- name : Upload evitaDB version.txt # upload `version.txt` for `docker-latest.yml` to deploy to DockerHub
133
- uses : actions/upload-artifact@v4
133
+ uses : actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
134
134
if : success()
135
135
with :
136
136
name : version.txt
0 commit comments