Skip to content

Commit

Permalink
amended back to job
Browse files Browse the repository at this point in the history
  • Loading branch information
sdh100shaun committed May 13, 2024
1 parent a871670 commit 314b8ba
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 26 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,14 @@ jobs:
distribution: 'corretto'
cache: 'maven'

- name: Publish to GitHub Packages Apache Maven
uses: ./.github/workflows/maven.yaml
with:
maven-goal: deploy
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
push:
if: ${{needs.release-please.outputs.release_created}}
name: Publish to GitHub Packages Apache Maven
uses: ./.github/workflows/maven.yaml
with:
maven-goal: deploy
needs: release-please
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}


25 changes: 5 additions & 20 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,11 @@ jobs:
secrets: inherit

build-maven:
runs-on: ubuntu-latest
needs: security
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
distribution: "corretto"
java-version: "11"
cache: maven
- name: Maven settings
uses: whelk-io/maven-settings-xml-action@v22
with:
servers: '[{ "id":"github-vol-active-support", "configuration": { "httpHeaders": { "property": { "name":"Authorization", "value":"Bearer ${{ secrets.GITHUB_TOKEN }}"} } } } ]'
- name : Maven build
uses: ./.github/workflows/maven.yaml
with:
maven-goal: package

name: Build Maven
uses: ./.github/workflows/maven.yaml
with:
maven-goal: package




4 changes: 4 additions & 0 deletions .github/workflows/maven.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,9 @@ jobs:
with:
path: ${{ github.repository }}
fetch-depth: 0
- uses: whelk-io/maven-settings-xml-action@v22
with:
servers: '[{ "id":"github-vol-active-support", "configuration": { "httpHeaders": { "property": { "name":"Authorization", "value":"Bearer ${{ secrets.GITHUB_TOKEN }}"} } } } ]'

- run: mvn -B -P github ${{ inputs.maven-goal}}

0 comments on commit 314b8ba

Please sign in to comment.