added scp deployment

This commit is contained in:
Silas Bartha 2025-03-15 17:43:07 -04:00
parent d79a9b5acc
commit c40eb2477e
Signed by: soaos
GPG Key ID: 9BD3DCC0D56A09B2

View File

@ -10,16 +10,11 @@ jobs:
- name: Check out repository code
uses: actions/checkout@v4
- run: zola build
- uses: christopherhx/gitea-upload-artifact@v4
with:
name: public
path: public
Deploy:
container: alpine:latest
steps:
- uses: christopherhx/gitea-download-artifact@v4
with:
name: public
path: public
- run: ls public
- name: Write SSH keys
run: |
install -m 600 -D /dev/null ~/.ssh/id_rsa
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
ssh-keyscan -H soaos.dev > ~/.ssh/known_hosts
- name: Copy built site to server
run: scp -sr public git@soaos.dev:/var/www/soaos.dev