Setting Up Docs Builder via GitHub Actions

This commit is contained in:
ᎠᎡ. Ѕϵrgϵ Ѵictor 2020-01-30 18:33:16 +07:00
parent 2300de333f
commit d2539751ff
2 changed files with 13 additions and 6 deletions

8
.github/builder.ldptool.cfg vendored Normal file
View File

@ -0,0 +1,8 @@
[ldptool]
sourcedir = /home/runner/work/LDP/LDP/faq/linuxdoc/,
/home/runner/work/LDP/LDP/guide/linuxdoc/,
/home/runner/work/LDP/LDP/howto/linuxdoc/,
/home/runner/work/LDP/LDP/howto/docbook/,
/home/runner/work/LDP/LDP/guide/docbook/,
/home/runner/work/LDP/LDP/ref/docbook/,
/home/runner/work/LDP/LDP/faq/docbook/

View File

@ -30,22 +30,20 @@ jobs:
- name: 🧱 Compiling Martins LDP Python Scripts if not Found in Cache
if: steps.python-tldp.outputs.cache-hit != 'true'
run: |
sudo apt-get update
sudo apt-get -y install texlive-font-utils linuxdoc-tools-text linuxdoc-tools-latex docbook-dsssl docbook-xsl docbook-utils htmldoc htmldoc-common docbook-xsl html2text docbook5-xml docbook-xsl-ns jing asciidoc libxml2-utils python3-stdeb fakeroot python3-all python3-networkx python3-nose fop ldp-docbook-xsl ldp-docbook-dsssl docbook opensp dh-python
cd
cd ~/work
git clone https://github.com/tLDP/python-tldp
cd python-tldp && rm -rf debian
python3 setup.py --command-packages=stdeb.command bdist_deb
cd
shell: bash
- name: Installation of Martins LDP Python Scripts
run: |
cd ~/work
sudo dpkg -i python-tldp/deb_dist/python3-tldp_*_all.deb
ldptool --dump-cfg
shell: bash
- name: Restoring SSH Key to Manage Documentation Repository
- name: 🔀 Restoring SSH Key to Manage Documentation Repository
run: |
echo "$SSH_KEY" > ~/.ssh/ldpkey
chmod 0600 ~/.ssh/ldpkey
@ -60,8 +58,9 @@ jobs:
# path: MAIN
# key: ldpdocs-main
- name: Restoring Production (Master Branch) LDP Docs from LDP WWW Server
- name: 🔀 Restoring Production (Master Branch) LDP Docs from LDP WWW Server
run:
cd ~/work
mkdir -p MAIN
mkdir -p TMP
rsync --stats -rvclz --delete-before -e 'ssh -p $LDPPORT -i ~/.ssh/ldpkey' $LDPUSER@$LDPHOST:/home/builder/build/en/ TMP/en