Skip to content

Enable clean URLs

Enable clean URLs #7

Workflow file for this run

name: Deploy Pfaditechnik
on:
push:
branches:
- deploy
jobs:
build-and-deploy:
runs-on: ubuntu-latest
environment: deploy
steps:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '18'
- name: Install dependencies
run: npm install
- name: Build the project
run: npm run docs:build
- name: Deploy via SSH
env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
SSH_USERNAME: ${{ secrets.SSH_USERNAME }}
SSH_SERVER: ${{ vars.SSH_SERVER }}
DEPLOY_PATH: ${{ vars.DEPLOY_PATH }}
run: |
mkdir -p ~/.ssh
echo "$SSH_PRIVATE_KEY" | tr -d '\r' > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh-keyscan -H $SSH_SERVER >> ~/.ssh/known_hosts
cd .vitepress/dist
rsync -avz --delete . $SSH_USERNAME@$SSH_SERVER:$DEPLOY_PATH