40 lines
1.0 KiB
YAML
40 lines
1.0 KiB
YAML
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
jobs:
|
|
Explore-Gitea-Actions:
|
|
runs-on: ubuntu
|
|
steps:
|
|
- name: 拉取代码仓库
|
|
uses: http://git.missmoc.top/mocheng/checkout@v4
|
|
|
|
- name: Set up Node.js ${{ matrix.node-version }}
|
|
uses: http://git.missmoc.top/mocheng/setup-node@v3
|
|
with:
|
|
node-version: 20.x
|
|
- name: pnpm
|
|
run: npm i pnpm -g
|
|
- name: node
|
|
run: |
|
|
mkdir -p ~/.ssh
|
|
npm install webworkify-webpack --save
|
|
ssh-keyscan github.com >> ~/.ssh/known_hosts
|
|
pnpm i
|
|
|
|
- name: Build
|
|
run: pnpm build:antd
|
|
- name: copy file via ssh password
|
|
uses: http://git.missmoc.top/mocheng/scp-action@v0.1.7
|
|
with:
|
|
host: 127.0.0.1
|
|
username: ${ { SERVER_NAME } }
|
|
password: ${{ SERVER_PWD}}
|
|
port: 11001
|
|
source: "./apps/web-antd/dist"
|
|
target: "/www/wwwroot/183.230.235.66_11010/property"
|
|
|
|
|
|
|