From 2c1acf0a4019a4db7d41a54621840b440fe2b7ce Mon Sep 17 00:00:00 2001 From: Oshgnacknak Date: Sun, 1 Oct 2023 15:52:58 +0200 Subject: [PATCH] ci --- .github/workflows/build.yml | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7e8a17b..22977ea 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,16 +24,6 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: - - - name: Install SSH Key - uses: shimataro/ssh-key-action@v2 - with: - key: ${{ secrets.SSH_SECRET_KEY }} - known_hosts: "just-a-placeholder-so-we-dont-get-errors" - - - name: Adding Known Hosts - run: ssh-keyscan -H login.d120.de > ~/.ssh/known_hosts - # 1. Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - name: Set up Git repository uses: actions/checkout@v3 @@ -88,11 +78,23 @@ jobs: needs: build_latex # Steps represent a sequence of tasks that will be executed as part of the job steps: + - name: Install SSH Key + uses: shimataro/ssh-key-action@v2 + with: + key: ${{ secrets.SSH_SECRET_KEY }} + known_hosts: "just-a-placeholder-so-we-dont-get-errors" + + - name: Adding Known Hosts + run: | + mkdir ~/.ssh + ssh-keyscan -H login.d120.de > ~/.ssh/known_hosts + # save the pdf file from the previous workflow - name: Save pdf file uses: actions/download-artifact@v3 with: path: . name: Vorkurs-Folien + - name: Deploy with rsync run: rsync -avz * ${{ secrets.SSH_USER }}@login.d120.de:public_html