@@ -0,0 +1,67 @@
13+ if: github.event_name != 'push'
14+ runs-on: ubuntu-latest
16+ - uses: actions/checkout@v1
17+ - uses: actions/setup-node@v1
21+ working-directory: ./docs
23+ if [ -e yarn.lock ]; then
24+ yarn install --frozen-lockfile
25+ elif [ -e package-lock.json ]; then
32+ if: github.event_name != 'pull_request'
33+ runs-on: ubuntu-latest
35+ - uses: actions/checkout@v1
36+ - uses: actions/setup-node@v1
39+ - name: Add key to allow access to repository
41+ SSH_AUTH_SOCK: /tmp/ssh_agent.sock
44+ ssh-keyscan github.com >> ~/.ssh/known_hosts
45+ echo "${{ secrets.GH_PAGES_DEPLOY }}" > ~/.ssh/id_rsa
46+ chmod 600 ~/.ssh/id_rsa
47+ cat <<EOT >> ~/.ssh/config
50+ IdentityFile ~/.ssh/id_rsa
52+ - name: Release to GitHub Pages
53+ working-directory: ./docs
58+ git config --global user.email "actions@gihub.com"
59+ git config --global user.name "gh-actions"
60+ if [ -e yarn.lock ]; then
61+ yarn install --frozen-lockfile
62+ elif [ -e package-lock.json ]; then
67+ npx docusaurus deploy