Skip to content

Commit

Permalink
🚀 Update deployment config
Browse files Browse the repository at this point in the history
  • Loading branch information
prinsss committed Nov 7, 2023
1 parent a746092 commit 4b87577
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 24 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,22 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Checkout theme repo
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
repository: prinsss/hexo-theme-murasaki
ref: master
path: themes/murasaki

- name: Set up Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: 17
node-version: 18

- name: Cache pnpm modules
uses: actions/cache@v2
uses: actions/cache@v3
id: pnpm-cache
with:
path: ~/.pnpm-store
Expand All @@ -38,24 +38,21 @@ jobs:
${{ runner.os }}-pnpm-
- name: Set up pnpm and install dependencies
uses: pnpm/action-setup@v2.0.1
uses: pnpm/action-setup@v2
with:
version: 6.21.0
version: 8.10.2
run_install: |
args: [--prefer-offline, --frozen-lockfile]
- name: Set up environment
env:
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
DEPLOY_KEY_OLD: ${{ secrets.DEPLOY_KEY_OLD }}
run: |
sudo timedatectl set-timezone "Asia/Shanghai"
mkdir -p ~/.ssh
echo "$DEPLOY_KEY" > ~/.ssh/id_rsa
echo "$DEPLOY_KEY_OLD" > ~/.ssh/old_key
chmod 600 ~/.ssh/id_rsa ~/.ssh/old_key
chmod 600 ~/.ssh/id_rsa
ssh-keyscan github.com >> ~/.ssh/known_hosts
cp .github/workflows/ssh_config ~/.ssh/config
- name: Deploy
run: |
Expand Down
7 changes: 0 additions & 7 deletions .github/workflows/ssh_config

This file was deleted.

10 changes: 4 additions & 6 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,9 @@ theme_config:
enable: true
loading_image: images/loading.jpg
disqus:
enable: false
enable: true
shortname: blessing-studio
api: https://disqus.printempw.workers.dev/api/
api: https://disqus.skk.moe/disqus/
apikey: 5O1HIIFsAWX3lBOQveU8qWPPAd2aLyf1fklehBAfcQ7S9Jo8y4acIrmyO2uxMD35
admin: printempw
admin_label: 博主
Expand All @@ -138,12 +138,10 @@ hide_posts:
## Docs: https://hexo.io/docs/deployment.html
deploy:
type: git
repo:
new: git@gh_new:prinsss/prinsss.github.io.git
old: git@gh_old:printempw/printempw.github.io.git
repo: [email protected]:prinsss/prinsss.github.io.git
branch: master
name: prin
email: [email protected]
email: [email protected]

# hexo-math
math:
Expand Down

0 comments on commit 4b87577

Please sign in to comment.