Skip to content

Commit

Permalink
Sign only in pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
wilmveel committed Oct 11, 2023
1 parent c84c43f commit 613a110
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ jobs:

env:
WIRESPEC_BUILD_LINUX: true
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}

steps:
- uses: actions/checkout@v3
Expand All @@ -37,7 +36,6 @@ jobs:
node-version: 16
- name: Run
run: |
export GPG_TTY=$(tty)
make build
make image
make example
Expand Down Expand Up @@ -77,7 +75,6 @@ jobs:
gpg-passphrase: GPG_PASSPHRASE
- name: Run
run: |
export GPG_TTY=$(tty)
./gradlew build
- name: Archive macosX86 cli
uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -122,6 +119,8 @@ jobs:
VERSION: ${{needs.version.outputs.version}}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.GPG_PRIVATE_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.GPG_PASSPHRASE }}

steps:
- uses: actions/checkout@v3
Expand All @@ -135,7 +134,6 @@ jobs:
gpg-passphrase: GPG_PASSPHRASE
- name: Run
run: |
export GPG_TTY=$(tty)
./gradlew :src:plugin:gradle:publish
release-plugin-maven:
Expand All @@ -149,6 +147,8 @@ jobs:
VERSION: ${{needs.version.outputs.version}}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.GPG_PRIVATE_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.GPG_PASSPHRASE }}

steps:
- uses: actions/checkout@v3
Expand All @@ -162,7 +162,6 @@ jobs:
gpg-passphrase: GPG_PASSPHRASE
- name: Run
run: |
export GPG_TTY=$(tty)
./gradlew :src:plugin:maven:publish
release-intellij:
Expand All @@ -186,7 +185,6 @@ jobs:
cache: gradle
- name: Run
run: |
export GPG_TTY=$(tty)
./gradlew :src:lsp:intellij-plugin:publishPlugin
release-vscode:
Expand Down Expand Up @@ -215,7 +213,6 @@ jobs:
node-version: 16
- name: Build lib
run: |
export GPG_TTY=$(tty)
./gradlew :src:compiler:lib:build
- name: Build server
working-directory: ./lsp/node/server
Expand Down Expand Up @@ -274,6 +271,8 @@ jobs:
VERSION: ${{needs.version.outputs.version}}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.GPG_PRIVATE_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.GPG_PASSPHRASE }}

steps:
- uses: actions/checkout@v3
Expand All @@ -287,7 +286,6 @@ jobs:
gpg-passphrase: GPG_PASSPHRASE
- name: Run
run: |
export GPG_TTY=$(tty)
./gradlew :src:compiler:core:publish
./gradlew :src:compiler:lib:publish
Expand Down Expand Up @@ -317,7 +315,6 @@ jobs:
registry-url: 'https://registry.npmjs.org'
- name: Build
run: |
export GPG_TTY=$(tty)
./gradlew :src:compiler:lib:build
- name: Build
working-directory: ./build/js
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ allprojects {
}

signing {
useGpgCmd()
setRequired{System.getenv("VERSION") != null}
sign(publishing.publications)
}

Expand Down

0 comments on commit 613a110

Please sign in to comment.