Skip to content

Commit

Permalink
拥抱jdk17;升级版本 1.3.0;
Browse files Browse the repository at this point in the history
  • Loading branch information
wh1t3p1g committed Jan 17, 2024
1 parent b1961f5 commit 3f2fe3a
Showing 1 changed file with 12 additions and 23 deletions.
35 changes: 12 additions & 23 deletions .github/workflows/gradle-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,29 +9,18 @@ on:

jobs:
build:

name: 'Test Build'
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'adopt'
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: Build with Gradle
run: gradle bootJar
- name: 'checkout'
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-java@v4
name: 'Setup JDK'
with:
distribution: 'zulu'
java-version: '17'

# 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
run: gradle publish
env:
USERNAME: ${{ github.actor }}
TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build with Gradle
run: ./gradlew bootJar

0 comments on commit 3f2fe3a

Please sign in to comment.