This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: deploy web-chat-x-vue libp2p web application | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths: | |
- "packages/web-chat-x-vue/**" | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout repository | |
uses: actions/[email protected] | |
- name: Install Node.js | |
uses: actions/[email protected] | |
with: | |
node-version: "18.18.1" | |
- uses: pnpm/[email protected] | |
name: Install pnpm | |
with: | |
version: 9.3.0 | |
run_install: false | |
- name: Install npm dependencies | |
run: pnpm install | |
- name: Build | |
run: pnpm build:f | |
- name: Deploy to tencent cloud server | |
uses: easingthemes/[email protected] | |
env: | |
SSH_PRIVATE_KEY: ${{ vars.SSH_KEY }} | |
ARGS: "-rltgoDzvO --delete" | |
SOURCE: "packages/web-chat-x-vue/dist/" | |
REMOTE_HOST: "62.234.163.223" | |
REMOTE_USER: root | |
TARGET: "/home/web-chat-x/web-chat-x-vue" | |
- name: Deploy to aliyun cloud server | |
uses: easingthemes/[email protected] | |
env: | |
SSH_PRIVATE_KEY: ${{ vars.SSH_KEY }} | |
ARGS: "-rltgoDzvO --delete" | |
SOURCE: "packages/web-chat-x-vue/dist/" | |
REMOTE_HOST: "182.92.222.231" | |
REMOTE_USER: root | |
TARGET: "/home/web-chat-x/web-chat-x-vue" |