Skip to content

Commit

Permalink
fix:Update cd.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
sr4850 authored May 20, 2024
1 parent 3f4814b commit 0d124b8
Showing 1 changed file with 23 additions and 20 deletions.
43 changes: 23 additions & 20 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,11 @@ jobs:
tag_name: ${{ steps.release.outputs.tag_name }}
release_created: ${{ steps.release.outputs.release_created }}
steps:
- uses: google-github-actions/release-please-action@v4
- uses: googleapis/release-please-action@v4
id: release
with:
release-type: maven



publish:
if: ${{needs.release-please.outputs.release_created}}
runs-on: ubuntu-latest
Expand All @@ -31,21 +30,25 @@ jobs:
needs:
- release-please
steps:
- name: checkout code
uses: actions/checkout@v4
- name: checkout code
uses: actions/checkout@v4

- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'corretto'
cache: 'maven'

- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'corretto'
cache: 'maven'

- name: Publish to GitHub Packages Apache Maven
uses: ./.github/actions.yamal
with:
maven-goal: deploy
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}


push:
if: ${{needs.release-please.outputs.release_created}}
permissions:
contents: read
packages: write

name: Publish to GitHub Packages Apache Maven
uses: ./.github/workflows/maven.yaml
secrets: inherit
with:
maven-goal: deploy
needs: release-please

0 comments on commit 0d124b8

Please sign in to comment.