Add ssh deploy key and stuff.
Build Web App / build-and-deploy (push) Failing after 13s Details

This commit is contained in:
Andrew Lalis 2025-08-07 20:44:48 -04:00
parent 7497389984
commit 81a790be33
1 changed files with 6 additions and 1 deletions

View File

@ -16,5 +16,10 @@ jobs:
working-directory: ./web-app working-directory: ./web-app
- run: npm run build - run: npm run build
working-directory: ./web-app working-directory: ./web-app
- run: mkdir .ssh && echo "${{ secrets.deploykey }}" > .ssh/id_rsa - name: Install SSH Key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.DEPLOY_KEY }}
- name: Add SSH Known Hosts
run: ssh-keyscan -H ${{ secrets.SSH_HOST }} >> ~/.ssh/known_hosts
- run: rsync -rav -e ssh --delete dist/* root@andrewlalis.com:/opt/finnow/app-content - run: rsync -rav -e ssh --delete dist/* root@andrewlalis.com:/opt/finnow/app-content