38 lines
916 B
YAML
38 lines
916 B
YAML
name: Gitea Actions Demo
|
|
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
|
on: [push]
|
|
|
|
jobs:
|
|
|
|
Explore-Gitea-Actions:
|
|
runs-on: ubuntu
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
uses: http://git.missmoc.top/mocheng/checkout@v4 # 使用 Gitea 镜像
|
|
with:
|
|
fetch-depth: 1 # 只拉取最新一次提交
|
|
|
|
- name: Set up Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 20.x
|
|
- name: pnpm
|
|
run: npm i pnpm -g
|
|
- name: node
|
|
run: pnpm i
|
|
- name: Build
|
|
run: pnpm build:antd
|
|
- name: copy file via ssh password
|
|
uses: appleboy/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: "/project/wl/web/dist"
|
|
|
|
|
|
|