Skip to content

Commit

Permalink
Merge pull request #177 from drackp2m/dev
Browse files Browse the repository at this point in the history
💻 ci: update github-pages config
  • Loading branch information
drackp2m authored Nov 3, 2024
2 parents fb84a24 + 56cb0e1 commit d34c0d5
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit d34c0d5

Please sign in to comment.