Skip to content

Merge remote-tracking branch 'origin/vls-65' into vls-65 #707

Merge remote-tracking branch 'origin/vls-65' into vls-65

Merge remote-tracking branch 'origin/vls-65' into vls-65 #707

Workflow file for this run

name: YouNote build
on:
push:
branches:
- home
- vls-65
jobs:
you-note-deploy:
name: deploy YouNote
runs-on: ubuntu-latest
steps:
- name: Pull code
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.PRIVATE_KEY }}
script: cd /home/${{ secrets.USERNAME }}/frontend/2024_1_scratch_senior_devs && git pull
- name: Build frontend
uses: appleboy/ssh-action@master
with:
timeout: 10m
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.PRIVATE_KEY }}
script: cd /home/${{ secrets.USERNAME }}/frontend/2024_1_scratch_senior_devs && npm run build
- name: Build frontend
uses: appleboy/ssh-action@master
with:
timeout: 10m
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.PRIVATE_KEY }}
script: sudo cp -rf /home/${{ secrets.USERNAME}}/frontend/2024_1_scratch_senior_devs/dist/* /opt/public/
- name: Build frontend
uses: appleboy/ssh-action@master
with:
timeout: 10m
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.PRIVATE_KEY }}
script: sudo mkdir -p /opt/public/src && sudo rsync -av --delete /home/${{ secrets.USERNAME }}/frontend/2024_1_scratch_senior_devs/dist/assets/ /opt/public/src/assets/