Try to use scp to copy the built site to the server
Build and copy to prod / build-and-copy (push) Failing after 1m43s

This commit is contained in:
Lewis Dale committed 2024-03-07 14:02:57 +00:00
1 parent 4dd43fcf53
commit 91f05d9824
1 file changed
+4 -2
+4 -2
View File
@@ -19,5 +19,7 @@ jobs:
env:
NODE_ENV: production
OMNIVORE_API_KEY: ${{ secrets.OMNIVORE_API_KEY }}
- name: Create ssh key
run: mkdir ~/.ssh && echo "${{ secrets.SSH_KEY }}" >> ~/.ssh/id_rsa
- name: Copy _site to prod
run: scp -rp _site/ ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:/var/www/html