2020-12-13 08:15:10 +00:00
|
|
|
name: 'Update Docs'
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
docs:
|
|
|
|
name: Update Docs
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-node@v1
|
2020-12-13 18:14:08 +00:00
|
|
|
with:
|
|
|
|
node-version: '14'
|
2020-12-13 08:15:10 +00:00
|
|
|
- name: Install Packages
|
|
|
|
run: npm install
|
|
|
|
- name: Build Docs
|
|
|
|
run: npm run docs
|
|
|
|
- name: Deploy 🚢
|
2020-12-13 17:57:55 +00:00
|
|
|
uses: cpina/github-action-push-to-another-repository@master
|
|
|
|
env:
|
|
|
|
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
|
2020-12-13 08:15:10 +00:00
|
|
|
with:
|
2020-12-13 17:57:55 +00:00
|
|
|
source-directory: 'public'
|
|
|
|
destination-github-username: 'ldapjs'
|
|
|
|
destination-repository-name: 'ldapjs.github.io'
|
|
|
|
user-email: 'bot@ldapjs.org'
|
|
|
|
target-branch: 'gh-pages'
|