-
-
Notifications
You must be signed in to change notification settings - Fork 2
36 lines (30 loc) · 1.03 KB
/
deploy-docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# 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