test deploy again
All checks were successful
publish / publish (push) Successful in 31s

This commit is contained in:
Lyn Fugmann 2024-10-06 22:39:01 +02:00
parent d44c09e925
commit f0153b1b6d

View file

@ -11,13 +11,13 @@ jobs:
env: env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_DEPLOY_PRIVATE_KEY }} SSH_PRIVATE_KEY: ${{ secrets.SSH_DEPLOY_PRIVATE_KEY }}
steps: steps:
- run: apt update && apt install dnsutils -y && dig git.ifsr.de - name: checkout
uses: actions/checkout@v4
- uses: actions/checkout@v4
with: with:
submodules: recursive submodules: recursive
- uses: actions/setup-node@v4 - name: setup node
uses: actions/setup-node@v4
with: with:
node-version: 'lts/*' node-version: 'lts/*'
@ -25,15 +25,16 @@ jobs:
- run: npm run build - run: npm run build
- uses: https://code.forgejo.org/forgejo/upload-artifact@v4 - name: upload artifact
uses: https://code.forgejo.org/forgejo/upload-artifact@v4
with: with:
path: _site path: _site
- name: Deploy - name: deploy
run: | run: |
eval $(ssh-agent -s) eval $(ssh-agent -s)
echo "$SSH_PRIVATE_KEY" | ssh-add - echo "$SSH_PRIVATE_KEY" | ssh-add -
apt-get update && apt-get install -y rsync apt-get update && apt-get install -y rsync
mkdir ~/.ssh mkdir ~/.ssh
ssh-keyscan quitte.ifsr.de > ~/.ssh/known_hosts ssh-keyscan ifsr.de > ~/.ssh/known_hosts
rsync -rvh --progress --delete _site/ ese-deploy@quitte.ifsr.de:2024-test rsync -rvh --progress --delete _site/ ese-deploy@ifsr.de:2024-test