Skip to content

Commit

Permalink
v2.0.0.0
Browse files Browse the repository at this point in the history
- debug CI/CD

Took 4 minutes
  • Loading branch information
Jake-Moore committed Nov 19, 2023
1 parent 5709c03 commit 7c5ce9a
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions .github/workflows/gradle-publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,36 +9,30 @@ on:
pull_request:
branches: [ "master" ]
jobs:
build:
gradle:

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

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- 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
settings-path: ${{ github.workspace }} # location for the settings.xml file

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Build with Gradle
uses: gradle/gradle-build-action@bd5760595778326ba7f1441bcf7e88b49de61a25 # v2.6.0
with:
arguments: build
- name: Setup Gradle
uses: gradle/gradle-build-action@v2

- name: Publish with Gradle (to Luxious Nexus)
uses: gradle/gradle-build-action@bd5760595778326ba7f1441bcf7e88b49de61a25 # v2.6.0
with:
arguments: publish
- name: Build and Publish with Gradle
run: ./gradlew build publish
env:
USERNAME: ${{ secrets.MAVEN_NAME }}
TOKEN: ${{ secrets.MAVEN_SECRET }}
Expand Down

0 comments on commit 7c5ce9a

Please sign in to comment.