Skip to content
This repository has been archived by the owner on Mar 15, 2024. It is now read-only.

Commit

Permalink
Optimize deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
rettichlp committed May 22, 2023
1 parent 519ad67 commit c5c799c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/wiki_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- feature/UCAF-655-enhanced-wiki

jobs:
wiki:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -27,12 +27,20 @@ jobs:
run: pip install mkdocs-git-revision-date-localized-plugin
- name: Build MkDocs wiki
run: mkdocs build
setup-ssh:
runs-on: ubuntu-latest
steps:
- name: Set up SSH key
run: |
mkdir -p ~/.ssh
echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh-keyscan -H rettichlp.de >> ~/.ssh/known_hosts
cat ~/.ssh/id_rsa
deploy:
runs-on: ubuntu-latest
needs: [ build,setup-ssh ]
steps:
- name: Deploy to server
run: scp -r site/ [email protected]:/unicacityaddon_wiki
- name: Execute update script
Expand Down

0 comments on commit c5c799c

Please sign in to comment.