Skip to content

publish docs

publish docs #12

Workflow file for this run

name: publish docs
on:
workflow_dispatch:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v4
with:
node-version: "*"
cache: "npm"
cache-dependency-path: "./docs/package-lock.json"
- name: install docs dependencies
run: npm ci
working-directory: ./docs
- name: build docs
run: npm run docs:build
working-directory: ./docs
- name: rsync deployments
uses: burnett01/[email protected]
with:
switches: -avzr --delete
path: docs/.vitepress/dist/
remote_path: domains/po-godzinach.info/public_html/ksef/
remote_host: ksef.po-godzinach.info
remote_user: toudi
remote_port: 222
remote_key: ${{ secrets.DOCS_DEPLOYMENT_KEY }}