Skip to content

docs:update (#11)

docs:update (#11) #476

Workflow file for this run

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: deploy-docs
on:
push:
branches: [ "main" ]
# pull_request:
# branches: [ "main" ]
jobs:
build:
# if: "contains(github.event.commits[0].message, '--docs')"
runs-on: ubuntu-latest
steps:
- uses: pnpm/action-setup@v2
with:
version: 8.6.0
- uses: actions/checkout@v2
- name: Setup SSH Keys and known_hosts
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
run: |
mkdir -p ~/.ssh
ssh-keyscan github.com >> ~/.ssh/known_hosts
ssh-agent -a $SSH_AUTH_SOCK > /dev/null
ssh-add - <<< "${{ secrets.SSH_PRIVATE_KEY }}"
- name: Run deploy.sh script
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
run: |
sh deploy.sh