Skip to content

Commit

Permalink
fix(artifact): Fix expired signing certificate (#206)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseLion authored Sep 17, 2023
1 parent 9465192 commit a274f4d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 12 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,15 @@ jobs:
with:
node-version-file: .nvmrc
cache: yarn
- name: Provision
run: |
sed -i "s/{SIGNING_PASSWORD}/${{ secrets.SIGNING_PASSWORD }}/g" gradle.properties
sed -i "s/{SONATYPE_USERNAME_TOKEN}/${{ secrets.SONATYPE_USERNAME_TOKEN }}/g" gradle.properties
sed -i "s/{SONATYPE_PASSWORD_TOKEN}/${{ secrets.SONATYPE_PASSWORD_TOKEN }}/g" gradle.properties
- run: ./gradlew assemble
- run: yarn install --immutable
- run: yarn release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PASSWORD }}
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.SONATYPE_USERNAME_TOKEN }}
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.SONATYPE_PASSWORD_TOKEN }}

pages:
uses: ./.github/workflows/pages.yml
Expand Down
4 changes: 4 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,10 @@ publishing {
}

signing {
def signingKey = findProperty("signingKey")
def signingPassword = findProperty("signingPassword")

useInMemoryPgpKeys(signingKey, signingPassword)
sign(publishing.publications.mavenJava)
}

Expand Down
7 changes: 0 additions & 7 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
version=0.0.0

signing.keyId=031E46E1
signing.password={SIGNING_PASSWORD}
signing.secretKeyRingFile=lion-keyring.asc

sonatypeUsername={SONATYPE_USERNAME_TOKEN}
sonatypePassword={SONATYPE_PASSWORD_TOKEN}

org.gradle.parallel=true
org.gradle.caching=true
Binary file removed lion-keyring.asc
Binary file not shown.

0 comments on commit a274f4d

Please sign in to comment.