Skip to content

rename step

rename step #6

Workflow file for this run

name: publish docs
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Cache node modules
id: cache-npm
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }}
name: Install dependencies
continue-on-error: true
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 }}