fix router
This commit is contained in:
24
.github/workflows/deploy.yml
vendored
24
.github/workflows/deploy.yml
vendored
@@ -16,6 +16,16 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Clear directory
|
||||
uses: appleboy/ssh-action@v1.0.0
|
||||
with:
|
||||
host: ${{ secrets.HOST }}
|
||||
username: ${{ secrets.SSH_USER }}
|
||||
port: ${{ secrets.SSH_PORT }}
|
||||
key: ${{ secrets.SSH_KEY }}
|
||||
script: |
|
||||
rm -rf ${{ secrets.TARGET_DIR }}/ffsaf/src/*
|
||||
|
||||
- name: Copy repository contents to vps via scp
|
||||
uses: appleboy/scp-action@v0.1.4 # Latest in date when creating the workflow
|
||||
with:
|
||||
@@ -26,6 +36,20 @@ jobs:
|
||||
source: "."
|
||||
target: ${{ secrets.TARGET_DIR }}/ffsaf # Need to create it first on the VPS
|
||||
|
||||
- name: Build site and copy it
|
||||
uses: appleboy/ssh-action@v1.0.0
|
||||
with:
|
||||
host: ${{ secrets.HOST }}
|
||||
username: ${{ secrets.SSH_USER }}
|
||||
port: ${{ secrets.SSH_PORT }}
|
||||
key: ${{ secrets.SSH_KEY }}
|
||||
script: |
|
||||
cd ${{ secrets.TARGET_DIR }}/ffsaf/src/main/webapp
|
||||
cp ${{ secrets.TARGET_DIR }}/vite.env .env
|
||||
npm run build
|
||||
rm -rf ${{ secrets.TARGET_DIR }}/ffsaf/src/main/resources/META-INF/resources
|
||||
mv dist ${{ secrets.TARGET_DIR }}/ffsaf/src/main/resources/META-INF/resources
|
||||
|
||||
- name: Build application
|
||||
uses: appleboy/ssh-action@v1.0.0
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user