添加runner
This commit is contained in:
parent
b053c3481a
commit
3e58d936ad
25
.gitea/workflows/ build.yml
Normal file
25
.gitea/workflows/ build.yml
Normal file
@ -0,0 +1,25 @@
|
||||
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
|
||||
run: npm install && npm run src:build
|
||||
- name: scp delay
|
||||
uses: appleboy/scp-action@master
|
||||
with:
|
||||
host: ${{ vars.HOST }}
|
||||
username: ${{ vars.USERNAME }}
|
||||
password: ${{ vars.PASSWORD }}
|
||||
source: "./dist"
|
||||
target: "/usr/share/nginx/html2"
|
Loading…
Reference in New Issue
Block a user