feat: prepared deploy via github actions file #1
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: 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" |