parent
ac475f5b23
commit
1f5b084f35
|
@ -8,14 +8,16 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
|
||||||
image: node:18
|
|
||||||
options: --volume /www/wwwroot/caddy/html/:/public
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Setup Node.js
|
||||||
|
uses: actions/setup-node@v2
|
||||||
|
with:
|
||||||
|
node-version: '18' # or specify the version you need
|
||||||
|
|
||||||
- name: Install pnpm
|
- name: Install pnpm
|
||||||
run: npm i -g pnpm hexo
|
run: npm i -g pnpm hexo
|
||||||
|
|
||||||
|
@ -30,3 +32,9 @@ jobs:
|
||||||
|
|
||||||
- name: build algolia search index
|
- name: build algolia search index
|
||||||
run: pnpm run search
|
run: pnpm run search
|
||||||
|
|
||||||
|
- name: Copy files to remote server
|
||||||
|
run: |
|
||||||
|
scp -r public/* root@maxshader.com:/www/wwwroot/caddy/html/blog-hexo
|
||||||
|
env:
|
||||||
|
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
|
Loading…
Reference in New Issue
Block a user