added scp deployment
This commit is contained in:
parent
d79a9b5acc
commit
c40eb2477e
@ -10,16 +10,11 @@ jobs:
|
|||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- run: zola build
|
- run: zola build
|
||||||
- uses: christopherhx/gitea-upload-artifact@v4
|
- name: Write SSH keys
|
||||||
with:
|
run: |
|
||||||
name: public
|
install -m 600 -D /dev/null ~/.ssh/id_rsa
|
||||||
path: public
|
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
|
||||||
Deploy:
|
ssh-keyscan -H soaos.dev > ~/.ssh/known_hosts
|
||||||
container: alpine:latest
|
- name: Copy built site to server
|
||||||
steps:
|
run: scp -sr public git@soaos.dev:/var/www/soaos.dev
|
||||||
- uses: christopherhx/gitea-download-artifact@v4
|
|
||||||
with:
|
|
||||||
name: public
|
|
||||||
path: public
|
|
||||||
- run: ls public
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user