From ca938758ebd7d6909837533d495b5e87b378a7e1 Mon Sep 17 00:00:00 2001 From: Surendrajat Date: Mon, 1 Mar 2021 22:22:17 +0530 Subject: [PATCH 1/4] deploy docs --- .github/workflows/docs.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/docs.yml diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 000000000..ce51e892f --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,32 @@ +name: Documentation + +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 $encrypted_bd0ed4c1fd75_key -iv $encrypted_bd0ed4c1fd75_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 "actions@github.com" + bash scripts/deploy_docs.sh From 193f0fb48ff69b2c819f8cea41888afd06eb7900 Mon Sep 17 00:00:00 2001 From: Surendrajat Date: Wed, 3 Mar 2021 14:26:45 +0530 Subject: [PATCH 2/4] update deploy keys --- .github/workflows/docs.yml | 2 +- scripts/deploy_docs_rsa.enc | Bin 1840 -> 400 bytes 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index ce51e892f..d45344118 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -24,7 +24,7 @@ jobs: cd .. - name: deploy docs run: | - openssl aes-256-cbc -K $encrypted_bd0ed4c1fd75_key -iv $encrypted_bd0ed4c1fd75_iv -in scripts/deploy_docs_rsa.enc -out scripts/deploy_docs_rsa -d + openssl aes-256-cbc -K $CUTTER_DOCS_KEY -iv $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" diff --git a/scripts/deploy_docs_rsa.enc b/scripts/deploy_docs_rsa.enc index 659b3042b6680d9c68c12221ea31dc5a228c58c3..180dec74c7a94e0eb5871b5353da048abfa88c7b 100644 GIT binary patch literal 400 zcmV;B0dM{vj3bE}zJL;F4QaJoaIDX&-IrthD@J1*4wz@ z3o=@ZMz7$GM7zEWoJh+$&;v!P$geJ}BqkA>fehVgJ&VA**@P#YNf-MSGQYe7-W}6f z>g<4m1nwKACFRhNY{?5<>Fq&{gx3h1BlOT;{74!43lqH|7ZHN0S@;|1+j?_VAERj* zuT?TeKm&Q`g885qcG9t_Etay6G)YyYRJXX+#aOb4P1}$2C;8@ua-u%&mn{_ybgt;e z=zz&*Cm2sT)xZ;gG^)8`Cp(`Q@e!CV(Ges76HO6a<7hxBf1=-``{`PW_O?kl-aFc3 zgQ4b6rj8U@Y1aB9*wzYv=~6+Jy7h6Ocvbddp(>eBeWWcrfvqHRxJ%5gHyZqZJ|B|C z74DHUxN$sMWEJR-23V`w9Wu{mZqGX^xJ8^izr literal 1840 zcmV-02haFvA%kO|3ZX^TRMtDLu~QtfCuyd|%5Py;@+s^zCvQP|yguk+Ml;5ZvKx#N zgn`)-{S34JqZ3D>Fo+Wn0fT5@2d)w27jc>X2MUkNG4g*Dp&4Xt@_t0i=J6wkug zHy_pq#m92ppL#vh%~Lhx)ON+8E-HHz6^?hXIvfboZHyT6*V8211-ww1+kmADE5xi2jtaB>-LF=Ga@Xh zqfIpxOqq5eCc<*t{2(YcGUL93LBR6Y4(rT>Xsmi1Oj)R*D5ZGf}MmUIAGch42`kUJvV*IZuB zCl<0OosQfvh;j*v9*EvjiEKw)5LE1odE%CCOIAnCbxs}n1Ldb^BzbVX-6_N!juu4t zg1b!D=(+x6yqpN248>+&oM%)z3SGRJ5+#coS`8hU)1*IHmyXXoXpq)*5Wx!oC&^)Q z^vD1wBHTc@-+$xJxyDr#Lm-48_mF?mL)L?5-`=dh9sVkQG&{O&=*}bnvRh0mEDz= zlyMSE&V)^Rw`rJ)8lnQ5J^jv|ESxrYm!fJzNHpMeD#n0p$XiBFj_1T3tKt+>trz`% z#sWeCqux2rn8EozWC_)5+96CEXZ~TP##WE57V;`KB6C1Macw=V|8alz$Q%C3bUnGE zU|T7e0;Vs-Q4qSTcawInv7Ti`wQF!e#tP)rc|2s zC`Jd0f+d%eudqu90PquUwu#&~jSsK8%#Jqs-rlbrUIOInnMTo1wplcr52c4CfKto_ zkjbk|N;!4M8{2p)IW>lAm{2n4aIJc+xUtPOOqde?; z^HFk!?q*8aYy~@}2CeLMKFjX%TMXCr>jg=Z=l9%eLJHt`VQJ&{t&D9Tb2<1tD^ydu zKF_jvXH&0`$WpNi#(yE8v4l{HiPz4&=c9v|wEr=@(d7 zEEPZ{MWdO&$0Xw-92w`4yvNIeQrYD1agk<7$MC9SHq9RC0bg*w#x_|_|a?-aEMRa*QfU&bL(SXf4jw(=WWq+tw$Aq_g(94X~0;> zRHE&3zO0+fnXyglBQlRHIBIfz_te*DdTUCAx$Ue>T^!dKmZQbprQoYy-N87=M?Jn~ e9{_xVhwt>uOA0qy5^hhax__ahGanr7PQsgzbc2lm From 4e2185d9203dd2601804034922d0c8cdee63a1e5 Mon Sep 17 00:00:00 2001 From: Surendrajat Date: Wed, 3 Mar 2021 14:37:42 +0530 Subject: [PATCH 3/4] fix secrets --- .github/workflows/docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index d45344118..d387534a9 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -24,7 +24,7 @@ jobs: cd .. - name: deploy docs run: | - openssl aes-256-cbc -K $CUTTER_DOCS_KEY -iv $CUTTER_DOCS_IV -in scripts/deploy_docs_rsa.enc -out scripts/deploy_docs_rsa -d + 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" From 18b325d96a5fec706af2b70c4dcd71ef73390480 Mon Sep 17 00:00:00 2001 From: Surendrajat Date: Wed, 3 Mar 2021 16:19:01 +0530 Subject: [PATCH 4/4] update ci name --- .github/workflows/docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index d387534a9..416451772 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -1,4 +1,4 @@ -name: Documentation +name: Docs on: push: