Skip to content

Commit c6e90e3

Browse files
committed
fix signing setup script
1 parent d937684 commit c6e90e3

File tree

2 files changed

+80
-80
lines changed

2 files changed

+80
-80
lines changed

.github/workflows/release.yml

Lines changed: 74 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -42,77 +42,77 @@ jobs:
4242

4343
- run: rm -rf ~/.gradle/gradle.properties
4444

45-
update_readme:
46-
runs-on: ubuntu-latest
47-
48-
permissions:
49-
contents: write # for stefanzweifel/git-auto-commit-action to push code in repo
50-
51-
needs: [release_tag]
52-
if: startsWith( github.ref, 'refs/tags/')
53-
54-
steps:
55-
- name: Checkout
56-
uses: actions/checkout@v3
57-
with:
58-
ref: main
59-
60-
- uses: gradle/wrapper-validation-action@56b90f209b02bf6d1deae490e9ef18b21a389cd4
61-
62-
- run: ./gradlew -Pversion=${{ github.ref_name }} writeVersionToReadme setVersion nextMinorVersion snapshotVersion
63-
64-
- name: "remove API reference commit SHA"
65-
run: rm -rf reference.txt
66-
continue-on-error: true
67-
68-
- run: ./gradlew writeVersionToExamples
69-
70-
- uses: stefanzweifel/git-auto-commit-action@3ea6ae190baf489ba007f7c92608f33ce20ef04a
71-
with:
72-
commit_message: "TASK: Updating version in README"
73-
commit_user_name: automation-commercetools
74-
commit_user_email: automation@commercetools.com
75-
commit_author: Auto Mation <automation@commercetools.com>
76-
77-
docs:
78-
name: Build and release docs
79-
80-
permissions:
81-
contents: write # for stefanzweifel/git-auto-commit-action to push code in repo
82-
83-
runs-on: ubuntu-latest
84-
needs: [release_tag]
85-
if: startsWith( github.ref, 'refs/tags/')
86-
steps:
87-
- name: Checkout
88-
uses: actions/checkout@v3
89-
with:
90-
path: sdk
91-
92-
- name: Checkout
93-
uses: actions/checkout@v3
94-
with:
95-
path: doc
96-
ref: gh-pages
97-
98-
- name: Setup Java
99-
uses: actions/setup-java@v3
100-
with:
101-
distribution: 'temurin'
102-
java-version: '17'
103-
104-
- name: Setup Graphviz
105-
uses: ts-graphviz/setup-graphviz@c001ccfb5aff62e28bda6a6c39b59a7e061be5b9
106-
107-
- run: ./gradlew -Pversion=${{ github.ref_name }} alljavadoc
108-
working-directory: sdk
109-
110-
- run: rsync -r sdk/build/docs/javadoc/ doc/javadoc
111-
112-
- uses: stefanzweifel/git-auto-commit-action@3ea6ae190baf489ba007f7c92608f33ce20ef04a
113-
with:
114-
repository: doc
115-
commit_message: "Update javadoc"
116-
commit_user_name: automation-commercetools
117-
commit_user_email: automation@commercetools.com
118-
commit_author: Auto Mation <automation@commercetools.com>
45+
# update_readme:
46+
# runs-on: ubuntu-latest
47+
#
48+
# permissions:
49+
# contents: write # for stefanzweifel/git-auto-commit-action to push code in repo
50+
#
51+
# needs: [release_tag]
52+
# if: startsWith( github.ref, 'refs/tags/')
53+
#
54+
# steps:
55+
# - name: Checkout
56+
# uses: actions/checkout@v3
57+
# with:
58+
# ref: main
59+
#
60+
# - uses: gradle/wrapper-validation-action@56b90f209b02bf6d1deae490e9ef18b21a389cd4
61+
#
62+
# - run: ./gradlew -Pversion=${{ github.ref_name }} writeVersionToReadme setVersion nextMinorVersion snapshotVersion
63+
#
64+
# - name: "remove API reference commit SHA"
65+
# run: rm -rf reference.txt
66+
# continue-on-error: true
67+
#
68+
# - run: ./gradlew writeVersionToExamples
69+
#
70+
# - uses: stefanzweifel/git-auto-commit-action@3ea6ae190baf489ba007f7c92608f33ce20ef04a
71+
# with:
72+
# commit_message: "TASK: Updating version in README"
73+
# commit_user_name: automation-commercetools
74+
# commit_user_email: automation@commercetools.com
75+
# commit_author: Auto Mation <automation@commercetools.com>
76+
#
77+
# docs:
78+
# name: Build and release docs
79+
#
80+
# permissions:
81+
# contents: write # for stefanzweifel/git-auto-commit-action to push code in repo
82+
#
83+
# runs-on: ubuntu-latest
84+
# needs: [release_tag]
85+
# if: startsWith( github.ref, 'refs/tags/')
86+
# steps:
87+
# - name: Checkout
88+
# uses: actions/checkout@v3
89+
# with:
90+
# path: sdk
91+
#
92+
# - name: Checkout
93+
# uses: actions/checkout@v3
94+
# with:
95+
# path: doc
96+
# ref: gh-pages
97+
#
98+
# - name: Setup Java
99+
# uses: actions/setup-java@v3
100+
# with:
101+
# distribution: 'temurin'
102+
# java-version: '17'
103+
#
104+
# - name: Setup Graphviz
105+
# uses: ts-graphviz/setup-graphviz@c001ccfb5aff62e28bda6a6c39b59a7e061be5b9
106+
#
107+
# - run: ./gradlew -Pversion=${{ github.ref_name }} alljavadoc
108+
# working-directory: sdk
109+
#
110+
# - run: rsync -r sdk/build/docs/javadoc/ doc/javadoc
111+
#
112+
# - uses: stefanzweifel/git-auto-commit-action@3ea6ae190baf489ba007f7c92608f33ce20ef04a
113+
# with:
114+
# repository: doc
115+
# commit_message: "Update javadoc"
116+
# commit_user_name: automation-commercetools
117+
# commit_user_email: automation@commercetools.com
118+
# commit_author: Auto Mation <automation@commercetools.com>

scripts/setup-signing-key.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,29 +14,30 @@ echo "Decrypt signing secrets"
1414
gcloud kms decrypt \
1515
--project=commercetools-platform \
1616
--location=global \
17-
--keyring=teamcity \
18-
--key=jvm-sdk \
17+
--keyring=devtooling \
18+
--key=java-sdk-v2 \
1919
--ciphertext-file=signing_key.enc \
2020
--plaintext-file=signing_key.asc
2121

2222
gcloud kms decrypt \
2323
--project=commercetools-platform \
2424
--location=global \
25-
--keyring=teamcity \
26-
--key=jvm-sdk \
25+
--keyring=devtooling \
26+
--key=java-sdk-v2 \
2727
--ciphertext-file=signing_passphrase.enc \
2828
--plaintext-file=signing_passphrase.txt
2929

3030
# Import the GPG key
3131
set +e
3232
echo "Importing the signing key"
3333
gpg --import --no-tty --batch --yes signing_key.asc
34+
echo " - done"
3435
set -e
3536

3637
# List available GPG keys
3738
gpg -K
3839

39-
KEYNAME=`gpg --with-colons --keyid-format long --list-keys automation@commercetools.de | grep fpr | cut -d ':' -f 10`
40+
KEYNAME=`gpg --with-colons --keyid-format long --list-keys devtooling@commercetools.com | grep fpr | cut -d ':' -f 10`
4041

4142
mkdir -p ~/.gradle
4243
touch ~/.gradle/gradle.properties
@@ -46,4 +47,3 @@ echo "signing.gnupg.keyName=$KEYNAME" >> ~/.gradle/gradle.properties
4647
echo "signing.gnupg.passphrase=$(<signing_passphrase.txt)" >> ~/.gradle/gradle.properties
4748

4849
rm -rf signing_passphrase.txt signing_passphrase.enc signing_key.enc decrypter.json signing_key.asc
49-

0 commit comments

Comments
 (0)