docs: add known issue about Docusaurus version constraint to README #37
Workflow file for this run
This file contains hidden or 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: Deploy KB to Apache Server | |
| on: | |
| push: | |
| branches: | |
| - kb | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v3 | |
| - name: Set up SSH Key | |
| run: | | |
| mkdir -p ~/.ssh | |
| echo "${{ secrets.DO_DEPLOY_KEY_APACHE }}" | awk 'NF {sub(/\r/, ""); printf "%s\n",$0;}' > ~/.ssh/id_rsa | |
| chmod 600 ~/.ssh/id_rsa | |
| ssh-keyscan -H ${{ secrets.DO_HOST_APACHE }} >> ~/.ssh/known_hosts | |
| - name: Debug SSH Connection | |
| run: ssh -i ~/.ssh/id_rsa -v deploy@${{ secrets.DO_HOST_APACHE }} "echo Connected successfully" | |
| - name: Deploy to Apache Server | |
| run: | | |
| ssh -i ~/.ssh/id_rsa -o StrictHostKeyChecking=no deploy@${{ secrets.DO_HOST_APACHE }} << 'EOF' | |
| set -e # Exit on any error | |
| echo "π Switching to KB directory..." | |
| cd /var/www/html/kb || exit | |
| echo "π Fetching latest changes..." | |
| git fetch origin kb | |
| git reset --hard origin/kb | |
| git clean -fd | |
| echo "π Setting up Node.js and NPM..." | |
| export NVM_DIR="$HOME/.nvm" | |
| [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # Load NVM | |
| [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # Load NVM bash completion | |
| echo "π Installing dependencies..." | |
| nice -n 19 npm install --prefer-offline --no-audit --no-fund --verbose | |
| export NODE_OPTIONS="--max_old_space_size=2048" | |
| echo "π Running Build..." | |
| npm run build | |
| EOF | |