Skip to content

feat: prepared deploy via github actions file #1

feat: prepared deploy via github actions file

feat: prepared deploy via github actions file #1

Workflow file for this run

#name: Deployment
#
#on:
# push:
# branches: [ master ]
#
#jobs:
# build:
# runs-on: ubuntu-latest
#
# strategy:
# matrix:
# node-version: [ 20.x ]
#
# steps:
# - name: Checkout
# uses: actions/checkout@v3
#
# - name: Setup Node.js
# uses: actions/setup-node@v3
# with:
# node-version: ${{ matrix.node-version }}
# cache: "yarn"
#
# - name: Install Dependencies
# run: yarn
#
# - name: Build
# run: yarn build
#
# - name: Delete old files
# uses: appleboy/[email protected]
# with:
# host: ${{ secrets.REMOTE_HOST }}
# username: ${{ secrets.REMOTE_USER }}
# password: ${{ secrets.REMOTE_PASSWORD }}
# port: ${{ secrets.REMOTE_PORT }}
# script: |
# cd frontend
#
# - name: Deploy new site
# uses: wlixcc/[email protected]
# with:
# username: ${{ secrets.REMOTE_USER }}
# server: ${{ secrets.REMOTE_HOST }}
# port: ${{ secrets.REMOTE_PORT }}
# password: ${{ secrets.REMOTE_PASSWORD }}
# local_path: "./website/dist/*"
# remote_path: "/frontend"