Skip to content

Commit

Permalink
feat: init CD job to deploy docs (sundowndev#165)
Browse files Browse the repository at this point in the history
  • Loading branch information
sundowndev authored Dec 13, 2019
1 parent 5865243 commit c96bed2
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Documentation CI

on:
push:
branches:
- master

jobs:
publish:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install mkdocs mkdocs-material
- name: Deploy
run: |
SSH_DIR="${HOME}/.ssh"
mkdir "${SSH_DIR}"
ssh-keyscan -t rsa github.com > "${SSH_DIR}/known_hosts"
echo "${{ secrets.ACTIONS_DEPLOY_KEY }}" > "${SSH_DIR}/id_rsa"
chmod 400 "${SSH_DIR}/id_rsa"
git remote set-url origin [email protected]:sundowndev/PhoneInfoga.git
git config user.name "${{ secrets.GITHUB_USER }}"
git config user.email "${{ secrets.GITHUB_USER }}@users.noreply.github.com"
mkdocs gh-deploy

0 comments on commit c96bed2

Please sign in to comment.