This commit is contained in:
parent
34b99513cc
commit
d44c09e925
2 changed files with 12 additions and 12 deletions
|
@ -3,13 +3,13 @@ name: publish
|
|||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- test
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
# env:
|
||||
# SSH_PRIVATE_KEY: ${{ secrets.SOME_SECRET_THAT_REPRESENTS_THE_PRIVATE_KEY }}
|
||||
env:
|
||||
SSH_PRIVATE_KEY: ${{ secrets.SSH_DEPLOY_PRIVATE_KEY }}
|
||||
steps:
|
||||
- run: apt update && apt install dnsutils -y && dig git.ifsr.de
|
||||
|
||||
|
@ -29,11 +29,11 @@ jobs:
|
|||
with:
|
||||
path: _site
|
||||
|
||||
# - name: Deploy
|
||||
# run: |
|
||||
# eval $(ssh-agent -s)
|
||||
# echo "$SSH_PRIVATE_KEY" | ssh-add -
|
||||
# apt update && apt install -y rsync
|
||||
# mkdir ~/.ssh
|
||||
# ssh-keyscan your-host.com > ~/.ssh/known_hosts
|
||||
# rsync -atv --progress ./public/ your-user@your-host.com:/home/your-user/your-content-directory/public
|
||||
- name: Deploy
|
||||
run: |
|
||||
eval $(ssh-agent -s)
|
||||
echo "$SSH_PRIVATE_KEY" | ssh-add -
|
||||
apt-get update && apt-get install -y rsync
|
||||
mkdir ~/.ssh
|
||||
ssh-keyscan quitte.ifsr.de > ~/.ssh/known_hosts
|
||||
rsync -rvh --progress --delete _site/ ese-deploy@quitte.ifsr.de:2024-test
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue