Skip to content

Commit 4b0122a

Browse files
committed
ci: fix creating secret key ring file
1 parent 935d54c commit 4b0122a

File tree

1 file changed

+36
-36
lines changed

1 file changed

+36
-36
lines changed

.github/workflows/github-packages-publish.yml

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -38,41 +38,41 @@ jobs:
3838
gpg --list-secret-keys --keyid-format LONG
3939
4040
- name: Creating PGP Ring Key
41-
run: gpg --export-secret-keys -o ~/pgp_key.ring
41+
run: echo ${{ secrets.GPG_PASSPHRASE }}
4242

43-
- name: Restore gradle.properties
44-
env:
45-
GRADLE_PROPERTIES: ${{ secrets.GRADLE_PROPERTIES }}
46-
shell: bash
47-
run: |
48-
mkdir -p ~/.gradle/
49-
echo "::set-env name=GRADLE_USER_HOME::$HOME/.gradle"
50-
echo ${GRADLE_PROPERTIES} > ~/.gradle/gradle.properties
51-
52-
- name: Set up JDK 17
53-
uses: actions/setup-java@v4
54-
with:
55-
java-version: '17'
56-
distribution: 'corretto'
57-
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
58-
settings-path: ${{ github.workspace }} # location for the settings.xml file
59-
60-
- name: Setup Gradle
61-
uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5 # v3.1.0
62-
63-
- name: Grant Execution Authority to Gradlew
64-
run: chmod +x ./gradlew
65-
66-
- name: Build with Gradle
67-
run: ./gradlew build
68-
69-
# The USERNAME and TOKEN need to correspond to the credentials environment variables used in
70-
# the publishing section of your build.gradle
71-
# - name: Publish to GitHub Packages
72-
# run: ./gradlew publishAllPublicationsToGithubPackagesRepository
43+
# - name: Restore gradle.properties
7344
# env:
74-
# USERNAME: ${{ github.actor }}
75-
# TOKEN: ${{ secrets.GITHUB_TOKEN }}
76-
77-
- name: Publish to Maven Central
78-
run: ./gradlew publish
45+
# GRADLE_PROPERTIES: ${{ secrets.GRADLE_PROPERTIES }}
46+
# shell: bash
47+
# run: |
48+
# mkdir -p ~/.gradle/
49+
# echo "::set-env name=GRADLE_USER_HOME::$HOME/.gradle"
50+
# echo ${GRADLE_PROPERTIES} > ~/.gradle/gradle.properties
51+
#
52+
# - name: Set up JDK 17
53+
# uses: actions/setup-java@v4
54+
# with:
55+
# java-version: '17'
56+
# distribution: 'corretto'
57+
# server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
58+
# settings-path: ${{ github.workspace }} # location for the settings.xml file
59+
#
60+
# - name: Setup Gradle
61+
# uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5 # v3.1.0
62+
#
63+
# - name: Grant Execution Authority to Gradlew
64+
# run: chmod +x ./gradlew
65+
#
66+
# - name: Build with Gradle
67+
# run: ./gradlew build
68+
#
69+
# # The USERNAME and TOKEN need to correspond to the credentials environment variables used in
70+
# # the publishing section of your build.gradle
71+
## - name: Publish to GitHub Packages
72+
## run: ./gradlew publishAllPublicationsToGithubPackagesRepository
73+
## env:
74+
## USERNAME: ${{ github.actor }}
75+
## TOKEN: ${{ secrets.GITHUB_TOKEN }}
76+
#
77+
# - name: Publish to Maven Central
78+
# run: ./gradlew publish

0 commit comments

Comments
 (0)