Skip to content

Commit

Permalink
update of github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
cassandrus committed Jan 24, 2024
1 parent 2f7802b commit ec870a7
Showing 1 changed file with 8 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
name: Gradle Package

on:
release:
types: [created]
push:
branches:
- master
Expand All @@ -22,47 +20,26 @@ env:
IMAGE_NAME: ${{ github.repository }}

jobs:
publish:
junit-tests:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: JDK 21 / Setup
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
java-version: '21'
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: Gradle / Validate wrapper
# uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b

#- name: Grant Permissions to gradlew
# run: chmod +x gradlew

- name: Gradle / Setup
uses: gradle/gradle-build-action@v2
with:
gradle-version: 8.5

- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@ccb4328a959376b642e027874838f60f8e596de3
- name: Grant Permissions to gradlew
run: chmod +x gradlew
- name: Gradle / Task (Build)
uses: gradle/gradle-build-action@v2
with:
gradle-version: 8.5
arguments: build

# The USERNAME and TOKEN need to correspond to the credentials environment variables used in
# the publishing section of your build.gradle
#- name: Publish to GitHub Packages
# uses: gradle/gradle-build-action@v2
# with:
# gradle-version: 8.5
# arguments: publishGprPublicationToGitHubPackagesRepository --stacktrace
# env:
# USERNAME: ${{ github.actor }}
# TOKEN: ${{ secrets.GITHUB_TOKEN }}
# GH_PACKAGES_UPLOAD_TOKEN: ${{ secrets.PUBLISH_NOEXPIRE_TOKEN }}
arguments: build

0 comments on commit ec870a7

Please sign in to comment.