feat: nginx #8
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: 8.12.0 | |
run_install: false | |
- name: Install npm dependencies | |
run: pnpm install | |
- name: Build | |
run: pnpm build:f | |
- name: Deploy to Server | |
uses: easingthemes/[email protected] | |
env: | |
SSH_PRIVATE_KEY: ${{ vars.SSH_KEY }} | |
ARGS: "-rltgoDzvO --delete" | |
SOURCE: "packages/web-chat-x-vue/dist/" | |
REMOTE_HOST: "81.68.108.130" | |
REMOTE_USER: root | |
TARGET: "/home/web-chat-x/web-chat-x-vue" |