Skip to content

Commit 5a4993d

Browse files
committed
Run SDK publish as sudo
1 parent be27783 commit 5a4993d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,10 @@ jobs:
131131
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
132132
MAVEN_SETTINGS: ${{ secrets.MAVEN_SETTINGS }}
133133
run: |
134-
echo -n "$GPG_PUBLIC_KEY" > /root/public-key
135-
echo -n "$GPG_PRIVATE_KEY" > /root/private-key
136-
echo -n "$MAVEN_SETTINGS" > /root/.m2/settings.xml
137-
infra/scripts/publish-java-sdk.sh --revision ${VERSION_WITHOUT_PREFIX} --gpg-key-import-dir /root
134+
sudo echo -n "$GPG_PUBLIC_KEY" > /root/public-key
135+
sudo echo -n "$GPG_PRIVATE_KEY" > /root/private-key
136+
sudo echo -n "$MAVEN_SETTINGS" > /root/.m2/settings.xml
137+
sudo infra/scripts/publish-java-sdk.sh --revision ${VERSION_WITHOUT_PREFIX} --gpg-key-import-dir /root
138138
139139
publish-helm-charts:
140140
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)