Skip to content

Commit 7eac705

Browse files
authored
Merge pull request #40 from Bandwidth/task/correct-workflow
DX-2005 Remove redundant steps in the workflow
2 parents 31da557 + 7489a5a commit 7eac705

File tree

1 file changed

+5
-15
lines changed

1 file changed

+5
-15
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,6 @@ jobs:
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
@@ -48,6 +33,11 @@ jobs:
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:

0 commit comments

Comments
 (0)