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
|
||||
uses: https://github.com/actions/setup-node@v4
|
||||
with:
|
||||
node-version: 23
|
||||
node-version: 23.11.0
|
||||
cache: 'pnpm'
|
||||
|
||||
- name: Install dependencies
|
||||
|
@ -38,16 +38,17 @@ jobs:
|
|||
run: pnpm run build-action
|
||||
|
||||
- name: Create folder if not exists
|
||||
continue-on-error: true
|
||||
run: |
|
||||
ssh -i ~/.ssh/aria-coffee-deploy ${{ vars.SERVER_USER }}@${{ vars.SERVER_HOST }} "mkdir -p /var/www/Aria/"
|
||||
|
||||
- name: Clear old backup
|
||||
if: success() || failure()
|
||||
continue-on-error: true
|
||||
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"
|
||||
|
||||
- name: Backup current install
|
||||
if: success() || failure()
|
||||
continue-on-error: true
|
||||
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"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue