ci: adjust ci configurations

This commit is contained in:
2026-06-02 16:43:01 +08:00
parent f1372896e0
commit f1aeb7204e
@@ -1,4 +1,4 @@
# Publishes onixbyte-tuple to Maven Central when a version tag is pushed to main. # Publishes onixbyte-bom to Maven Central when a version tag is pushed to main.
# #
# Supported tag format: <major>.<minor>.<patch>[-suffix] (e.g. 3.3.1, 3.3.1-alpha) # Supported tag format: <major>.<minor>.<patch>[-suffix] (e.g. 3.3.1, 3.3.1-alpha)
@@ -45,13 +45,12 @@ jobs:
uses: crazy-max/ghaction-import-gpg@v6.3.0 uses: crazy-max/ghaction-import-gpg@v6.3.0
with: with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
trust_level: 5 trust_level: 5
- name: Creating PGP Ring Key - name: Creating PGP Ring Key
run: | run: |
mkdir -p ~/.gnupg mkdir -p ~/.gnupg
echo ${{ secrets.GPG_PASSPHRASE }} | gpg --batch --yes --pinentry-mode loopback --passphrase-fd 0 --export-secret-keys -o ~/.gnupg/gpg_key.ring gpg --batch --yes --export-secret-keys -o ~/.gnupg/gpg_key.ring
- name: Restore gradle.properties - name: Restore gradle.properties
env: env:
@@ -77,7 +76,7 @@ jobs:
- name: Build with Gradle - name: Build with Gradle
env: env:
VERSION: ${{ steps.version.outputs.version }} VERSION: ${{ steps.version.outputs.version }}
run: ./gradlew build "-PartefactVersion=${VERSION}" run: ./gradlew build "-PversionCatalogueVersion=${VERSION}"
- name: List Output Items - name: List Output Items
run: ls -l ./build/libs run: ls -l ./build/libs
@@ -85,7 +84,7 @@ jobs:
- name: Publish to Maven Central - name: Publish to Maven Central
env: env:
VERSION: ${{ steps.version.outputs.version }} VERSION: ${{ steps.version.outputs.version }}
run: ./gradlew publish "-PartefactVersion=${VERSION}" run: ./gradlew publish "-PversionCatalogueVersion=${VERSION}"
- name: Create Deployment on Central Publisher Portal - name: Create Deployment on Central Publisher Portal
run: | run: |