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

Fix compact wiki GitHub action #15

Fix compact wiki GitHub action

Fix compact wiki GitHub action #15

Workflow file for this run

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
deploy:
runs-on: ubuntu-latest
needs: [ build ]
steps:
- name: Deploy to server
run: scp -o StrictHostKeyChecking=no -i ${{ secrets.SSH_PRIVATE_KEY }} -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"'