Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deploy docs #2616

Merged
merged 4 commits into from
Mar 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Docs

on:
push:
branches:
- master

jobs:
deploy:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: install dependencies
run: |
sudo apt-get install -y doxygen
pip install -U sphinx breathe sphinx-rtd-theme recommonmark
- name: build docs
run: |
export PATH="/home/runner/.local/bin:$PATH"
cd docs
make html
cd ..
- name: deploy docs
run: |
openssl aes-256-cbc -K ${{ secrets.CUTTER_DOCS_KEY }} -iv ${{ secrets.CUTTER_DOCS_IV }} -in scripts/deploy_docs_rsa.enc -out scripts/deploy_docs_rsa -d
chmod 600 scripts/deploy_docs_rsa
export GIT_SSH_COMMAND="/usr/bin/ssh -i $PWD/scripts/deploy_docs_rsa"
git config --global user.name "Github Actions"
git config --global user.email "[email protected]"
bash scripts/deploy_docs.sh
Binary file modified scripts/deploy_docs_rsa.enc
Binary file not shown.