Skip to content

Commit

Permalink
docs: add documentation deploy job
Browse files Browse the repository at this point in the history
  • Loading branch information
fallion committed Nov 18, 2020
1 parent 1002f1e commit 93ee126
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: documentation

on:
push:
branches:
- "master"
paths:
- "docs/**"

jobs:
documentation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: "12.x"
- name: Add key to allow access to repository
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
run: |
mkdir -p ~/.ssh
ssh-keyscan github.com >> ~/.ssh/known_hosts
echo "${{ secrets.GH_PAGES_DEPLOY }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
cat <<EOT >> ~/.ssh/config
Host github.com
HostName github.com
IdentityFile ~/.ssh/id_rsa
EOT
- name: Release to GitHub Pages
env:
USE_SSH: true
GIT_USER: git
ALGOLIA_KEY: ${{ secrets.ALGOLIA_KEY }}
run: |
git config --global user.email "bot@aevea.io"
git config --global user.name "aevea-bot"
cd www
yarn
yarn deploy

0 comments on commit 93ee126

Please sign in to comment.