Skip to content

Commit

Permalink
Adjust release pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
santam85 committed May 12, 2023
1 parent cbd6c00 commit ce3ca98
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/release.yml
Expand Up @@ -16,7 +16,7 @@ jobs:
uses: actions/setup-java@v3
with:
distribution: 'microsoft'
java-version: '11'
java-version: '17'
cache: 'maven'
- name: Build & Test
run: mvn -B test
Expand All @@ -31,7 +31,7 @@ jobs:
uses: actions/setup-java@v3
with:
distribution: 'microsoft'
java-version: '11'
java-version: '17'
cache: 'maven'
- name: Build and Analyze
env:
Expand All @@ -51,7 +51,7 @@ jobs:
uses: actions/setup-java@v3
with:
distribution: 'microsoft'
java-version: '11'
java-version: '17'
cache: 'maven'
server-id: ossrh
server-username: MAVEN_USERNAME
Expand Down Expand Up @@ -106,15 +106,13 @@ jobs:
needs: [ publish ]
steps:

- name: Checkout Main Branch
- name: Checkout Branch
uses: actions/checkout@v3
with:
ref: main
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'microsoft'
java-version: '11'
java-version: '17'
cache: 'maven'
- name: Configure Git user
run: |
Expand All @@ -135,8 +133,8 @@ jobs:
run: |
git commit -m "[version bump] new dev version" -a
- name: Push Development Version to Main Branch
- name: Push Development Version to Branch
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: main
branch: ${{github.event.release.target_commitish || 'main'}}

0 comments on commit ce3ca98

Please sign in to comment.