-
Notifications
You must be signed in to change notification settings - Fork 35
39 lines (30 loc) · 1.08 KB
/
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
34
35
36
37
38
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Docs Publishing
on:
push:
branches: [ master, docup ]
jobs:
build:
runs-on: ubuntu-latest
env:
working_directory: 'docs/'
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: '20.x'
- name: Install Dependencies
working-directory: ${{ env.working_directory }}
run: npm install
- name: Install SSH Client 🔑
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.DEPLOY_KEY }}
- name: Publish
working-directory: ${{ env.working_directory }}
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Action"
GIT_USER=yosiat CURRENT_BRANCH=master USE_SSH=true npm run deploy