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 f7a38fd commit b4f41fa
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@ 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 All @@ -39,8 +49,9 @@ jobs:
run: |
#make -j $(nproc) -C lecture
#mv lecture/pdfout pdfout
mkdir pdfout
mkdir -p pdfout/soos
echo hi > pdfout/hi.pdf
echo meem > pdfout/soos/saas.pdf
# 4. Upload artifacts to GitHub
- name: Upload artifacts to GitHub
Expand Down Expand Up @@ -83,6 +94,5 @@ jobs:
with:
path: .
name: Vorkurs-Folien
- name: Get branch name
run: echo "$GITHUB_REF"
- run: find
- name: Deploy with rsync
run: rsync -avz * ${{ secrets.SSH_USER }}@login.d120.de:public_html

0 comments on commit b4f41fa

Please sign in to comment.