Skip to content

Commit

Permalink
Fixing Snapshot Release (#1667)
Browse files Browse the repository at this point in the history
  • Loading branch information
nhachicha authored Feb 29, 2024
1 parent 17e4015 commit ac56828
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/include-deploy-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ jobs:
name: Deploy SNAPSHOT

steps:
- name: Remove unnecessary files
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- name: git checkout
uses: actions/checkout@v3
with:
Expand Down Expand Up @@ -42,4 +47,6 @@ jobs:
MAVEN_CENTRAL_USER: ${{ secrets.MAVEN_CENTRAL_USER }}
MAVEN_CENTRAL_PASSWORD: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
working-directory: tools
run: kotlin ./publish_snapshots.main.kts "../" "${{ inputs.version-label }}" "$GPG_SIGNING_KEY" "$GPG_PASS_PHRASE" "$MAVEN_CENTRAL_USER" "$MAVEN_CENTRAL_PASSWORD"
run: |
export GPG_TTY=$(tty)
kotlin ./publish_snapshots.main.kts "../" "${{ inputs.version-label }}" "$GPG_SIGNING_KEY" "$GPG_PASS_PHRASE" "$MAVEN_CENTRAL_USER" "$MAVEN_CENTRAL_PASSWORD"
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1642,4 +1642,4 @@ jobs:
secrets: inherit
with:
version-label: ${{ needs.check-cache.outputs.version-label }}
version-label: ${{ needs.check-cache.outputs.version-label }}
2 changes: 2 additions & 0 deletions tools/gpg_with_pinentry.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
gpg --pinentry-mode loopback "$@"

2 changes: 2 additions & 0 deletions tools/publish_snapshots.main.kts
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,8 @@ fun uploadFiles(files: PackageData) {
add("-Dfiles=${files.additionalFiles.map { "${files.fullPathToPackage}/${it.fileName}" }.joinToString(",")}")
add("-Dclassifiers=${files.additionalFiles.map { it.classifier }.joinToString(",")}")
add("-Dtypes=${files.additionalFiles.map { it.type }.joinToString(",")}")
add("-Dgpg.executable=./gpg_with_pinentry.sh") // work around https://stackoverflow.com/questions/60417391

}
debug("Running command: ${args.joinToString(" ")}")
runCommand(args, showOutput = true)
Expand Down

0 comments on commit ac56828

Please sign in to comment.