Compare commits
2 commits
394306db77
...
31037308e8
Author | SHA1 | Date | |
---|---|---|---|
31037308e8 | |||
ab9baf0322 |
1 changed files with 4 additions and 3 deletions
|
@ -28,7 +28,7 @@ jobs:
|
||||||
- name: Install Node.js
|
- name: Install Node.js
|
||||||
uses: https://github.com/actions/setup-node@v4
|
uses: https://github.com/actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 23
|
node-version: 23.11.0
|
||||||
cache: 'pnpm'
|
cache: 'pnpm'
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
@ -38,16 +38,17 @@ jobs:
|
||||||
run: pnpm run build-action
|
run: pnpm run build-action
|
||||||
|
|
||||||
- name: Create folder if not exists
|
- name: Create folder if not exists
|
||||||
|
continue-on-error: true
|
||||||
run: |
|
run: |
|
||||||
ssh -i ~/.ssh/aria-coffee-deploy ${{ vars.SERVER_USER }}@${{ vars.SERVER_HOST }} "mkdir -p /var/www/Aria/"
|
ssh -i ~/.ssh/aria-coffee-deploy ${{ vars.SERVER_USER }}@${{ vars.SERVER_HOST }} "mkdir -p /var/www/Aria/"
|
||||||
|
|
||||||
- name: Clear old backup
|
- name: Clear old backup
|
||||||
if: success() || failure()
|
continue-on-error: true
|
||||||
run: |
|
run: |
|
||||||
ssh -i ~/.ssh/aria-coffee-deploy ${{ vars.SERVER_USER }}@${{ vars.SERVER_HOST }} "[ -d "/var/www/Aria/dist-old" ] && rm -r /var/www/Aria/dist-old"
|
ssh -i ~/.ssh/aria-coffee-deploy ${{ vars.SERVER_USER }}@${{ vars.SERVER_HOST }} "[ -d "/var/www/Aria/dist-old" ] && rm -r /var/www/Aria/dist-old"
|
||||||
|
|
||||||
- name: Backup current install
|
- name: Backup current install
|
||||||
if: success() || failure()
|
continue-on-error: true
|
||||||
run: |
|
run: |
|
||||||
ssh -i ~/.ssh/aria-coffee-deploy ${{ vars.SERVER_USER }}@${{ vars.SERVER_HOST }} "[ -d "/var/www/Aria/dist" ] && mv /var/www/Aria/dist /var/www/Aria/dist-old"
|
ssh -i ~/.ssh/aria-coffee-deploy ${{ vars.SERVER_USER }}@${{ vars.SERVER_HOST }} "[ -d "/var/www/Aria/dist" ] && mv /var/www/Aria/dist /var/www/Aria/dist-old"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue