This repository has been archived by the owner on Mar 15, 2024. It is now read-only.
Fix compact wiki GitHub action #16
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Wiki | |
on: | |
push: | |
branches: | |
- feature/UCAF-655-enhanced-wiki | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.x | |
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV | |
- uses: actions/cache@v3 | |
with: | |
key: mkdocs-material-${{ env.cache_id }} | |
path: .cache | |
restore-keys: | | |
mkdocs-material- | |
- name: Install mkdocs-material theme | |
run: pip install mkdocs-material | |
- name: Install mkdocs-git-revision-date-localized-plugin plugin | |
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,setup-ssh ] | |
steps: | |
- name: Deploy to server | |
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"' |