File tree Expand file tree Collapse file tree 1 file changed +5
-15
lines changed
Expand file tree Collapse file tree 1 file changed +5
-15
lines changed Original file line number Diff line number Diff line change 2121 VOICE_CALLBACK_URL : ${{ secrets.VOICE_CALLBACK_URL }}
2222 runs-on : ubuntu-latest
2323 steps :
24- - uses : actions/checkout@v2
25- - name : Set up JDK 11
26- uses : actions/setup-java@v2
27- with :
28- distribution : ' adopt'
29- java-version : ' 11'
30-
31- - name : Set Maven project version
32- run : |
33- echo "RELEASE_VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV
34- mvn versions:set -DnewVersion=$RELEASE_VERSION
35-
36- - name : Build with Maven
37- run : mvn -B package --file pom.xml
38-
3924 - uses : actions/checkout@v2
4025 - name : Set up Apache Maven Central
4126 uses : actions/setup-java@v2
4833 gpg-private-key : ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
4934 gpg-passphrase : MAVEN_GPG_PASSPHRASE
5035
36+ - name : Set Maven project version
37+ run : |
38+ echo "RELEASE_VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV
39+ mvn versions:set -DnewVersion=$RELEASE_VERSION
40+
5141 - name : Publish to Apache Maven Central
5242 run : mvn deploy
5343 env :
You can’t perform that action at this time.
0 commit comments