-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #177 from drackp2m/dev
💻 ci: update github-pages config
- Loading branch information
Showing
1 changed file
with
11 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -82,19 +82,27 @@ jobs: | |
run: npm ci | ||
|
||
- name: Import GPG key | ||
env: | ||
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} | ||
run: | | ||
echo "${{ secrets.SEMANTIC_RELEASE_GPG_PRIVATE_KEY }}" | gpg --batch --import | ||
git config --global user.signingkey $(gpg --list-secret-keys --keyid-format LONG | grep sec | awk '{print $2}' | cut -d'/' -f2) | ||
echo "$GPG_PRIVATE_KEY" > private.key | ||
gpg --batch --import private.key | ||
git config --global user.name "semantic-release-bot" | ||
git config --global user.email "[email protected]" | ||
git config --global commit.gpgSign true | ||
git config --global user.signingkey 42247470C3E2A13A | ||
echo "allow-loopback-pinentry" >> ~/.gnupg/gpg.conf | ||
echo "pinentry-mode loopback" >> ~/.gnupg/gpg-agent.conf | ||
gpgconf --kill gpg-agent | ||
- name: Run semantic-release | ||
run: node --run release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GIT_AUTHOR_NAME: semantic-release-bot | ||
GIT_AUTHOR_EMAIL: [email protected] | ||
GIT_COMMITTER_NAME: semantic-release-bot | ||
GIT_COMMITTER_EMAIL: [email protected] | ||
run: node --run release | ||
|
||
deploy: | ||
environment: | ||
|