Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
MaheshBabu11 committed Oct 2, 2023
2 parents 92944b4 + 6184191 commit a7807fa
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# This workflow will build a package using Maven and then publish it to GitHub packages when a release is created
# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#apache-maven-with-a-settings-path

name: Maven Package
on:
release:
types: [created]
workflow_dispatch:

jobs:
build:

runs-on: ubuntu-latest
permissions:
contents: write
issues: write
packages: write
steps:
- uses: actions/checkout@v3
- run: |
git config user.name "GitHub Actions"
git config user.email "git@github.com"
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml

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

- name: Publish to GitHub Packages Apache Maven
run: mvn deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_ACTOR : 'MaheshBabu11'



0 comments on commit a7807fa

Please sign in to comment.