diff --git a/.circleci/config.yml b/.circleci/config.yml index 022c72e60..26cbdaf15 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -252,6 +252,16 @@ jobs: steps: - setup_remote_docker - checkout + - run: + name: Import GPG Key + command: | + echo "$GPG_PRIVATE_KEY" | gpg --import + echo "" | gpg --batch --yes --pinentry-mode loopback --passphrase-fd 0 --edit-key 4C19E4CC17E67B7B trust quit + - run: + name: Configure Git for Signing + command: | + git config --global user.signingkey 4C19E4CC17E67B7B + git config --global commit.gpgSign true - run: name: "Merge build branch" command: | @@ -262,7 +272,7 @@ jobs: git fetch origin "$CIRCLE_BRANCH-build" # Merge artifacts to a branch git merge "origin/$CIRCLE_BRANCH-build" --squash - git commit -m "Update WASM & Schemas [skip ci]" || echo "No changes to commit" + git commit -S -m "Update WASM & Schemas [skip ci]" || echo "No changes to commit" git push origin $CIRCLE_BRANCH || true # Delete temporary branch git push origin --delete "$CIRCLE_BRANCH-build"