-
Notifications
You must be signed in to change notification settings - Fork 4
26 lines (23 loc) · 953 Bytes
/
deploy.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
# 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://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Deploy Docs
on:
push:
branches: [ "main" ]
jobs:
deploy:
runs-on: ubuntu-latest
env:
GIT_USER: ${{secrets.USER}}
GIT_PASS: ${{secrets.TOKEN}}
steps:
- uses: actions/checkout@v3
- name: Install
run: cd documentation && yarn install
- name: Deploy
run: |
export ORG_NAME=$(echo ${GITHUB_REPOSITORY%/*})
export PROJECT_NAME=$(echo ${GITHUB_REPOSITORY#*/})
git config --global user.name "$(git --no-pager log --format=format:'%an' -n 1)"
git config --global user.email "$(git --no-pager log --format=format:'%ae' -n 1)"
cd documentation && yarn deploy