Skip to content

Commit

Permalink
Update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
munishkhatri720 authored Nov 14, 2024
1 parent 704157e commit e5fff6d
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@ name: Publish
on:
push:
release:
types: [ published ]
types: [published]

jobs:
build:
runs-on: ubuntu-latest
env:
MAVEN_USERNAME: ${{ vars.MAVEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -25,8 +23,8 @@ jobs:
- name: Setup Gradle
uses: gradle/gradle-build-action@v2

- name: Build and Publish
run: ./gradlew build publish --no-daemon -PMAVEN_USERNAME=$MAVEN_USERNAME -PMAVEN_PASSWORD=$MAVEN_PASSWORD
- name: Build Project
run: ./gradlew build --no-daemon

- name: Upload common Artifact
uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -77,4 +75,4 @@ jobs:
omitBodyDuringUpdate: true
omitDraftDuringUpdate: true
omitNameDuringUpdate: true
omitPrereleaseDuringUpdate: true
omitPrereleaseDuringUpdate: true

0 comments on commit e5fff6d

Please # to comment.