Skip to content

Commit 8260288

Browse files
committed
configure secrets for signing and publishing
Squashed commit of the following: commit 6665c95 Author: Michael Pollmeier <[email protected]> Date: Fri Feb 28 15:02:53 2025 +0100 fix settings.xml commit e93bd3a Author: Michael Pollmeier <[email protected]> Date: Fri Feb 28 15:01:59 2025 +0100 bring the remainder back in commit 50089d4 Author: Michael Pollmeier <[email protected]> Date: Fri Feb 28 14:59:43 2025 +0100 wiP commit 3fe9e35 Author: Michael Pollmeier <[email protected]> Date: Fri Feb 28 14:58:19 2025 +0100 wIp commit abf29a8 Author: Michael Pollmeier <[email protected]> Date: Fri Feb 28 14:53:40 2025 +0100 wip commit 5f4213b Author: Michael Pollmeier <[email protected]> Date: Fri Feb 28 14:26:30 2025 +0100 WIP
1 parent 787a584 commit 8260288

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

.github/workflows/release.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on:
33
workflow_dispatch: # allow to manually trigger this workflow
44
# push:
55
# branches:
6-
# - master
6+
# - michael/github-actions-debug2
77
jobs:
88
build_natives:
99
runs-on: ${{matrix.os}}
@@ -50,5 +50,18 @@ jobs:
5050
- run: git log -1 --pretty=format:%h
5151
- name: List native binaries
5252
run: tree GPL/DemanglerGnu/build/os Ghidra/Features/Decompiler/build/os Ghidra/Features/FileFormats/build/os
53+
- name: import PGP key for signing
54+
run: echo $PGP_SECRET | base64 --decode | gpg --batch --import
55+
env:
56+
PGP_SECRET: ${{ secrets.PGP_SECRET }}
57+
- name: configure username/password in maven settings.xml
58+
run: |
59+
mkdir -p ~/.m2
60+
cp settings.xml.template ~/.m2/settings.xml
61+
sed -i s#__USERNAME__#${SONATYPE_USERNAME}# ~/.m2/settings.xml
62+
sed -i s#__PASSWORD__#${SONATYPE_PASSWORD}# ~/.m2/settings.xml
63+
env:
64+
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
65+
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
5366
- name: Build release ghidra, all the way to maven central
5467
run: ./ghidra-publish.sh --non-interactive

settings.xml.template

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<settings>
2+
<servers>
3+
<server>
4+
5+
<id>sonatype-central-joern</id>
6+
<username>__USERNAME__</username>
7+
<password>__PASSWORD__</password>
8+
</server>
9+
</servers>
10+
</settings>

0 commit comments

Comments
 (0)