Merge remote-tracking branch 'origin/vls-65' into vls-65 #707
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: 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/ |