Setting Up Docs Builder via GitHub Actions

This commit is contained in:
ᎠᎡ. Ѕϵrgϵ Ѵictor 2020-01-31 09:33:25 +07:00
parent 997256efd2
commit 15483653b2
1 changed files with 13 additions and 12 deletions

View File

@ -1,4 +1,4 @@
name: LDP Builder
name: LDP Master Builder
on: [push]
@ -8,7 +8,7 @@ env:
LDPUSER: builder
jobs:
build:
documents-build:
runs-on: ubuntu-latest
@ -21,14 +21,15 @@ 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
id: pythontldp
uses: actions/cache@v1
with:
path: ~/work/python-tldp/deb_dist
key: python-tldp
key: ${{ runner.os }}-pythontldp
- name: 🧱 Compiling Martins LDP Python Scripts if not Found in Cache
if: steps.python-tldp.outputs.cache-hit != 'true'
if: steps.pythontldp.outputs.cache-hit != 'true'
run: |
cd ~/work
git clone https://github.com/tLDP/python-tldp
@ -55,10 +56,11 @@ jobs:
SSH_KEY: ${{secrets.SSHK}}
- name: ↪️ Restoring Recent Production (Master Branch) LDP Docs from Cache if Available
id: ldpdocsmain
uses: actions/cache@v1
with:
path: ~/work/MAIN
key: ldpdocs-main
key: ${{ runner.os }}-ldpdocsmain
- name: 🔀 Restoring Most Current Production (Master Branch) LDP Docs from LDP WWW Server
run: |
@ -68,17 +70,16 @@ jobs:
- name: 🧱 LDP Documents Processing via Martins scripts
run: |
ls -alR ~
cd ~/work
mkdir -p BUILD
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
ls -alR ~
shell: bash
# - name: 🔀 Built Documents Transfer for Master
# run:
# rsync --stats -rvclz --delete-before -e "ssh -p $LDPPORT -i ~/.ssh/ldpkey" ~work/MAIN/ $LDPUSER@$LDPHOST:/home/builder/build/en
# shell: bash
- name: 🔀 Built Documents Transfer for Master Main Documents WWW Server
run:
rsync --stats -rvclz --delete-before -e "ssh -p $LDPPORT -i ~/.ssh/ldpkey" ~work/MAIN/ $LDPUSER@$LDPHOST:/home/builder/build/en
shell: bash
# happy end.