vitepress-blog/.gitea/workflows/ build.yml

25 lines
627 B
YAML
Raw Normal View History

2024-07-09 17:44:33 +08:00
name: remote ssh delay command
on: [push]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
# 使用 node:18
- name: use Node.js 18
uses: actions/setup-node@v4
with:
node-version: 18
# npm install
- name: npm run build
2024-07-09 21:47:25 +08:00
run: npm install && npm run src:build && ls
2024-07-09 17:44:33 +08:00
- name: scp delay
2024-07-09 21:42:53 +08:00
uses: appleboy/scp-action@v0.1.7
2024-07-09 17:44:33 +08:00
with:
host: ${{ vars.HOST }}
username: ${{ vars.USERNAME }}
password: ${{ vars.PASSWORD }}
2024-07-09 21:47:25 +08:00
source: "./dist"
target: "/usr/share/nginx/blog"