mirror of https://github.com/tLDP/LDP
Setting Up Docs Builder via GitHub Actions
This commit is contained in:
parent
2300de333f
commit
d2539751ff
|
@ -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/
|
|
@ -30,22 +30,20 @@ jobs:
|
||||||
- name: 🧱 Compiling Martins LDP Python Scripts if not Found in Cache
|
- name: 🧱 Compiling Martins LDP Python Scripts if not Found in Cache
|
||||||
if: steps.python-tldp.outputs.cache-hit != 'true'
|
if: steps.python-tldp.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
cd ~/work
|
||||||
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
|
|
||||||
git clone https://github.com/tLDP/python-tldp
|
git clone https://github.com/tLDP/python-tldp
|
||||||
cd python-tldp && rm -rf debian
|
cd python-tldp && rm -rf debian
|
||||||
python3 setup.py --command-packages=stdeb.command bdist_deb
|
python3 setup.py --command-packages=stdeb.command bdist_deb
|
||||||
cd
|
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Installation of Martins LDP Python Scripts
|
- name: Installation of Martins LDP Python Scripts
|
||||||
run: |
|
run: |
|
||||||
|
cd ~/work
|
||||||
sudo dpkg -i python-tldp/deb_dist/python3-tldp_*_all.deb
|
sudo dpkg -i python-tldp/deb_dist/python3-tldp_*_all.deb
|
||||||
ldptool --dump-cfg
|
ldptool --dump-cfg
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Restoring SSH Key to Manage Documentation Repository
|
- name: 🔀 Restoring SSH Key to Manage Documentation Repository
|
||||||
run: |
|
run: |
|
||||||
echo "$SSH_KEY" > ~/.ssh/ldpkey
|
echo "$SSH_KEY" > ~/.ssh/ldpkey
|
||||||
chmod 0600 ~/.ssh/ldpkey
|
chmod 0600 ~/.ssh/ldpkey
|
||||||
|
@ -60,8 +58,9 @@ jobs:
|
||||||
# path: MAIN
|
# path: MAIN
|
||||||
# key: ldpdocs-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:
|
run:
|
||||||
|
cd ~/work
|
||||||
mkdir -p MAIN
|
mkdir -p MAIN
|
||||||
mkdir -p TMP
|
mkdir -p TMP
|
||||||
rsync --stats -rvclz --delete-before -e 'ssh -p $LDPPORT -i ~/.ssh/ldpkey' $LDPUSER@$LDPHOST:/home/builder/build/en/ TMP/en
|
rsync --stats -rvclz --delete-before -e 'ssh -p $LDPPORT -i ~/.ssh/ldpkey' $LDPUSER@$LDPHOST:/home/builder/build/en/ TMP/en
|
||||||
|
|
Loading…
Reference in New Issue