Compare commits
No commits in common. "31037308e87cd23e4558f0b17fc67ee65cf92fde" and "394306db774a850345f35ae31de40dbec693c142" have entirely different histories.
31037308e8
...
394306db77
1 changed files with 3 additions and 4 deletions
|
@ -28,7 +28,7 @@ jobs:
|
|||
- name: Install Node.js
|
||||
uses: https://github.com/actions/setup-node@v4
|
||||
with:
|
||||
node-version: 23.11.0
|
||||
node-version: 23
|
||||
cache: 'pnpm'
|
||||
|
||||
- name: Install dependencies
|
||||
|
@ -38,17 +38,16 @@ 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
|
||||
continue-on-error: true
|
||||
if: success() || failure()
|
||||
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
|
||||
continue-on-error: true
|
||||
if: success() || failure()
|
||||
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