Skip to content

Commit

Permalink
update workflow 14
Browse files Browse the repository at this point in the history
  • Loading branch information
kundan59 committed Sep 7, 2023
1 parent f2005ed commit 9b43725
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions .github/workflows/common-service-pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,31 @@
name: car-demo-common-service
name: Maven Package

on:
push:
branches: [ main ]
branches: [main]

jobs:
build:

runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- uses: actions/checkout@v3
- name: Set up JDK 19
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '19'
java-version: '11'
distribution: 'temurin'
server-id: github
settings-path: ${{ github.workspace }}
cache: maven
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file

- name: Build with Maven
run: mvn -B package --file pom.xml

- name: Build and Publish Maven
- name: Publish to GitHub Packages Apache Maven
run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml
env:
GITHUB_TOKEN: ${{ github.token }}
run: |
. servicedeploy.sh

0 comments on commit 9b43725

Please sign in to comment.