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

Commit

Permalink
Fix compact wiki GitHub action
Browse files Browse the repository at this point in the history
  • Loading branch information
rettichlp committed May 22, 2023
1 parent bd213c7 commit 1153646
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/wiki_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,19 @@ 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: Setup SSH
run: |
mkdir -p ~/.ssh
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
deploy:
runs-on: ubuntu-latest
needs: [ build ]
needs: [ build,setup-ssh ]
steps:
- name: Deploy to server
run: scp -o StrictHostKeyChecking=no -i ${{ secrets.SSH_PRIVATE_KEY }} -r site/ [email protected]:/unicacityaddon_wiki
run: scp -o StrictHostKeyChecking=no -i ~/.ssh/id_rsa -r site/ [email protected]:/unicacityaddon_wiki
- name: Execute update script
run: ssh -o StrictHostKeyChecking=no [email protected] powershell -InputFormat None -F '"C:\Users\ssh\Desktop\update_unicacityaddon_wiki.ps1"'

0 comments on commit 1153646

Please sign in to comment.