fix(ci): trying to get gpg to work
Some checks failed
🚀 Lint & Test & Deploy / release (push) Failing after 3m22s
Some checks failed
🚀 Lint & Test & Deploy / release (push) Failing after 3m22s
This commit is contained in:
@@ -75,13 +75,24 @@ pnpm exec dprint fmt CHANGELOG.md
|
|||||||
# -------------------------------------------------------------------
|
# -------------------------------------------------------------------
|
||||||
# 5. Setup GPG signing
|
# 5. Setup GPG signing
|
||||||
# -------------------------------------------------------------------
|
# -------------------------------------------------------------------
|
||||||
echo "$BOT_PGP_PRIVATE_KEY" | base64 -d | gpg --batch --import --
|
mkdir -p ~/.gnupg
|
||||||
GPG_KEY_ID=$(gpg --list-secret-keys --keyid-format LONG nodarium-bot@max-richter.dev 2>/dev/null | grep sec | head -n1 | sed 's/.*\///' | tr -d ' ')
|
chmod 700 ~/.gnupg
|
||||||
|
|
||||||
|
echo "pinentry-mode loopback" >>~/.gnupg/gpg.conf
|
||||||
|
echo "allow-loopback-pinentry" >>~/.gnupg/gpg-agent.conf
|
||||||
|
|
||||||
|
gpg-connect-agent reloadagent /bye
|
||||||
|
|
||||||
|
echo "$BOT_PGP_PRIVATE_KEY" | base64 -d | gpg --batch --import --
|
||||||
|
|
||||||
|
GPG_KEY_ID=$(gpg --list-secret-keys --keyid-format LONG nodarium-bot@max-richter.dev | grep sec | head -n1 | sed 's/.*\///' | tr -d ' ')
|
||||||
|
|
||||||
|
# Git Configuration
|
||||||
git config user.name "nodarium-bot"
|
git config user.name "nodarium-bot"
|
||||||
git config user.email "nodarium-bot@max-richter.dev"
|
git config user.email "nodarium-bot@max-richter.dev"
|
||||||
git config user.signingkey "$GPG_KEY_ID"
|
git config user.signingkey "$GPG_KEY_ID"
|
||||||
git config commit.gpgsign true
|
git config commit.gpgsign true
|
||||||
|
git config --global gpg.program "gpg --batch --pinentry-mode loopback"
|
||||||
|
|
||||||
# -------------------------------------------------------------------
|
# -------------------------------------------------------------------
|
||||||
# 6. Create release commit
|
# 6. Create release commit
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ export class ColorGenerator {
|
|||||||
|
|
||||||
const newColor = this.generateNewColor();
|
const newColor = this.generateNewColor();
|
||||||
this.colors.set(id, newColor);
|
this.colors.set(id, newColor);
|
||||||
console.log(id, newColor);
|
|
||||||
return this.colorToHsl(newColor);
|
return this.colorToHsl(newColor);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user