Setting Up Docs Builder via GitHub Actions

This commit is contained in:
ᎠᎡ. Ѕϵrgϵ Ѵictor 2020-01-30 22:10:41 +07:00
parent 3ec4d13af4
commit 21ce387804
1 changed files with 13 additions and 15 deletions

View File

@ -21,7 +21,7 @@ jobs:
sudo apt -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
shell: bash
- name: Restoring Martins LDP Python Scripts from Cache
- name: ☯️ Restoring Martins LDP Python Scripts from Cache
uses: actions/cache@v1
with:
path: python-tldp/deb_dist
@ -36,7 +36,7 @@ jobs:
python3 setup.py --command-packages=stdeb.command bdist_deb
shell: bash
- name: Installation of Martins LDP Python Scripts
- name: 🔃 Installation of Martins LDP Python Scripts
run: |
cd ~/work
sudo dpkg -i python-tldp/deb_dist/python3-tldp_*_all.deb
@ -54,25 +54,23 @@ jobs:
env:
SSH_KEY: ${{secrets.SSHK}}
# - name: Restoring Production (Master Branch) LDP Docs from Cache
# uses: actions/cache@v1
# with:
# path: MAIN
# key: ldpdocs-main
- name: ↪️ Restoring Recent Production (Master Branch) LDP Docs from Cache if Available
uses: actions/cache@v1
with:
path: MAIN
key: ldpdocs-main
# - 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
# shell: bash
- name: 🔀 Restoring Most Current Production (Master Branch) LDP Docs from LDP WWW Server
run: |
cd ~/work
mkdir -p MAIN
rsync --stats -rvclz --delete-before -e "ssh -p $LDPPORT -i ~/.ssh/ldpkey" $LDPUSER@$LDPHOST:/home/builder/build/en/ MAIN/en
shell: bash
- name: 🧱 LDP Documents Processing via Martins scripts
run: |
cd ~/work
mkdir -p BUILD
mkdir -p MAIN
ls -alR
ldptool --loglevel info --builddir BUILD --configfile LDP/LDP/.github/builder.ldptool.cfg --pubdir MAIN --list
ldptool --loglevel info --builddir BUILD --configfile LDP/LDP/.github/builder.ldptool.cfg --pubdir MAIN --publish