Skip to content

use recommended cache setup for npm #7

use recommended cache setup for npm

use recommended cache setup for npm #7

Workflow file for this run

name: publish docs
on:
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: 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 }}