feat: replace deploy step with node script
Some checks failed
Build and Deploy / build_and_deploy (push) Failing after 30s
Some checks failed
Build and Deploy / build_and_deploy (push) Failing after 30s
This commit is contained in:
parent
fb326ca244
commit
2310e52fb3
4 changed files with 285 additions and 110 deletions
|
@ -13,6 +13,9 @@ jobs:
|
|||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
|
||||
- name: Clean
|
||||
run: npm run clean
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
|
@ -22,12 +25,8 @@ jobs:
|
|||
URL: "${{ secrets.URL }}"
|
||||
run: npm run build
|
||||
|
||||
- name: Deploy
|
||||
- name: Upload build
|
||||
env:
|
||||
SFTP_USERNAME: "${{ secrets.SFTP_USERNAME }}"
|
||||
SFTP_PASSWORD: "${{ secrets.SFTP_PASSWORD }}"
|
||||
SFTP_HOST: "${{ secrets.SFTP_HOST }}"
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install sshpass -y
|
||||
sshpass -p "$SFTP_PASSWORD" rsync -zrP -e ssh ./dist/* $SFTP_USERNAME@$SFTP_HOST:/
|
||||
BUNNY_ACCESS_KEY: "${{ secrets.BUNNY_ACCESS_KEY }}"
|
||||
BUNNY_STORAGE_ZONE_NAME: "${{ secrets.BUNNY_STORAGE_ZONE_NAME }}"
|
||||
run: npm run upload
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue