Skip to content

zzx modit time push @ 2024-04-08_11-34-45 #8

zzx modit time push @ 2024-04-08_11-34-45

zzx modit time push @ 2024-04-08_11-34-45 #8

Workflow file for this run

name: NodeJS with Webpack
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [15.4]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Build
run: |
npm install
npm rum build
tar zcvf front.tar -C .vuepress/dist .
- name: copy file
uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
source: "front.tar"
target: /home/ubuntu
- name: Deploy
uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
script: |
echo '================begin======================'
pwd
echo '================rm======================'
rm -rf /home/ubuntu/doc/*
echo '================cd======================'
#cd /home/ubuntu
echo '================tar======================'
tar zxvf front.tar -C doc
echo '================end======================'