Skip to content

Commit

Permalink
ci: setup auth for deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
perqin committed Jul 5, 2024
1 parent 424f26b commit 7d9b536
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/hexo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,15 @@ jobs:
path: .deploy_git
- name: Setup deploy auth
run: |
mkdir -p ~/.ssh/
echo "$DEPLOY_KEY" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
cd .deploy_git
pwd
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
env:
DEPLOY_KEY: "${{ secrets.DEPLOY_KEY }}"
- name: Deploy
run: hexo g -d
# End: Deploy hexo blog website.
Expand Down

0 comments on commit 7d9b536

Please sign in to comment.