Merge pull request #28 from OnixByte/development

1.4.1
This commit is contained in:
Zihlu Wang
2024-04-29 16:29:45 +08:00
committed by GitHub
2 changed files with 19 additions and 18 deletions
+18 -17
View File
@@ -20,7 +20,21 @@ jobs:
packages: write
steps:
- uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4
- name: Setup GPG TTY
run: export GPG_TTY=$(tty)
- name: Import PGP Private Key
uses: crazy-max/ghaction-import-gpg@v6.1.0
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
trust_level: 5
- name: Creating PGP Ring Key
run: echo ${{ secrets.GPG_PASSPHRASE }} | gpg --batch --yes --pinentry-mode loopback --passphrase-fd 0 --export-secret-keys -o gpg_key.ring
- name: Restore gradle.properties
env:
@@ -28,17 +42,9 @@ jobs:
shell: bash
run: |
mkdir -p ~/.gradle/
echo "::set-env name=GRADLE_USER_HOME::$HOME/.gradle"
export GRADLE_USER_HOME=~/.gradle
echo ${GRADLE_PROPERTIES} > ~/.gradle/gradle.properties
- name: Restore gpg secret ring file
env:
GPG_SECRET_KEY_RING: ${{ secrets.GPG_SECRET_KEY_RING }}
shell: bash
run: |
mkdir -p ~/.gnupg/
echo ${GPG_SECRET_KEY_RING} > ~/.gnupg/42CBCB82.gpg
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
@@ -56,10 +62,5 @@ jobs:
- name: Build with Gradle
run: ./gradlew 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
run: ./gradlew publishAllPublicationsToGithubPackagesRepository
env:
USERNAME: ${{ github.actor }}
TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish to Maven Central
run: ./gradlew publish
+1 -1
View File
@@ -27,7 +27,7 @@ springVersion=6.1.3
springBootVersion=3.2.3
buildGroupId=com.onixbyte
buildVersion=1.4.0
buildVersion=1.4.1
projectUrl=https://onixbyte.com/JDevKit
projectGithubUrl=https://github.com/OnixByte/JDevKit
licenseName=The Apache License, Version 2.0