添加 .gitea/workflows/build.yml
PHengLEI docs build / PHengLEI-docs-build (push) Failing after 35s
Details
PHengLEI docs build / PHengLEI-docs-build (push) Failing after 35s
Details
This commit is contained in:
parent
0d7fccd922
commit
855ce28218
|
@ -0,0 +1,26 @@
|
||||||
|
name: PHengLEI docs build
|
||||||
|
run-name: PHengLEI docs build
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
PHengLEI-docs-build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Check out repository code
|
||||||
|
uses: https://osredm.com/actions/checkout@v4
|
||||||
|
- name: setup node
|
||||||
|
uses: https://osredm.com/actions/setup-node@main
|
||||||
|
with:
|
||||||
|
node-version: 'v16.14.2'
|
||||||
|
- run: npm install
|
||||||
|
- run: npm run build -- --locale zh-CN
|
||||||
|
- name: scp files to server
|
||||||
|
uses: appleboy/scp-action@v0.1.7
|
||||||
|
with:
|
||||||
|
host: 123.60.208.28
|
||||||
|
username: root
|
||||||
|
password: ${{ secrets.PASSWORD }}
|
||||||
|
port: 22
|
||||||
|
source: "build"
|
||||||
|
target: /root/
|
||||||
|
|
Loading…
Reference in New Issue