|
@@ -9,11 +9,11 @@ jobs:
|
|
|
build:
|
|
|
runs-on: ubuntu-latest
|
|
|
steps:
|
|
|
- - name: Checkout
|
|
|
+ - name: Checkout
|
|
|
uses: actions/checkout@v3
|
|
|
with:
|
|
|
path: webs
|
|
|
-
|
|
|
+
|
|
|
- name: Checkout meta2d.js repo
|
|
|
uses: actions/checkout@v3
|
|
|
with:
|
|
@@ -28,18 +28,18 @@ jobs:
|
|
|
path: 2d-components
|
|
|
|
|
|
- name: Install core
|
|
|
- run: |
|
|
|
+ run: |
|
|
|
cd meta2d.js
|
|
|
- yarn
|
|
|
+ yarn
|
|
|
|
|
|
- uses: pnpm/action-setup@v2
|
|
|
with:
|
|
|
version: latest
|
|
|
|
|
|
- name: Build
|
|
|
- run: |
|
|
|
+ run: |
|
|
|
cd webs
|
|
|
- pnpm i && pnpm run prod
|
|
|
+ pnpm i && pnpm run prod
|
|
|
|
|
|
- name: 安装COS
|
|
|
run: |
|
|
@@ -55,13 +55,13 @@ jobs:
|
|
|
- name: Upload COS
|
|
|
run: |
|
|
|
coscmd upload -rs ./webs/v/ /v/
|
|
|
-
|
|
|
+
|
|
|
- name: Upload index.html
|
|
|
- uses: appleboy/scp-action@v0.1.4
|
|
|
+ uses: appleboy/scp-action@v0.1.7
|
|
|
with:
|
|
|
host: ${{ secrets.HOST }}
|
|
|
username: ${{ secrets.USERNAME }}
|
|
|
password: ${{ secrets.PASSWORD }}
|
|
|
port: 22
|
|
|
source: webs/v/index.html
|
|
|
- target: ${{ secrets.WEB }}
|
|
|
+ target: ${{ secrets.WEB }}/v
|