Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Oshgnacknak committed Oct 1, 2023
1 parent b4f41fa commit 2c1acf0
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit 2c1acf0

Please sign in to comment.