This commit is contained in:
parent
34b99513cc
commit
d44c09e925
|
@ -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
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
layout: index.njk
|
||||
---
|
||||
## Herzlich Willkommen
|
||||
## TEST
|
||||
|
||||
Informatik an der TU Dresden. Unbekannte Stadt, großer Campus, so viele neue Leute. Wir als Fachschaftsrat Informatik, abgekürzt FSR, begrüßen dich ganz herzlich an der Uni. Du bist jetzt Teil einer großen Gemeinschaft, der Fachschaft Informatik.
|
||||
|
||||
|
|
Loading…
Reference in a new issue