Skip to content

Commit

Permalink
Update gradle-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
thalals authored Feb 15, 2024
1 parent 712a15d commit 022bc24
Showing 1 changed file with 31 additions and 30 deletions.
61 changes: 31 additions & 30 deletions .github/workflows/gradle-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,42 +14,43 @@ on:
- main

jobs:
job1:
build:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: CheckOut
uses: actions/checkout@v4
with:
token: ${{ secrets.ACTION_TOKEN }}
submodules: true

steps:
- name: CheckOut
uses: actions/checkout@v4
with:
token: ${{ secrets.ACTION_TOKEN }}
submodules: true
- name: Set up JDK 17
uses:
actions/setup-java@v4
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: Set up JDK 17
uses:
actions/setup-java@v4
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: Setup Gradle
uses: gradle/actions/setup-gradle@ec92e829475ac0c2315ea8f9eced72db85bb337a # v3.0.0

- name: Setup Gradle
uses: gradle/actions/setup-gradle@ec92e829475ac0c2315ea8f9eced72db85bb337a # v3.0.0
- name: Build with Gradle
run:
./gradlew -version
./gradlew clean build

- name: Build with Gradle
run:
./gradlew -version
./gradlew clean build
deplpoy:
needs: build
runs-on: ubuntu-latest

job2:
- needs: job1
- name: ls
run: ls
steps:
- name: ls
run: ls

# - name: AWS credential
# uses: aws-actions/configure-aws-credentials@v1
Expand Down

0 comments on commit 022bc24

Please sign in to comment.