mirror of https://github.com/tLDP/LDP
Setting Up Docs Builder via GitHub Actions
This commit is contained in:
parent
997256efd2
commit
15483653b2
|
@ -1,4 +1,4 @@
|
||||||
name: LDP Builder
|
name: LDP Master Builder
|
||||||
|
|
||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ env:
|
||||||
LDPUSER: builder
|
LDPUSER: builder
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
documents-build:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
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
|
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
|
shell: bash
|
||||||
|
|
||||||
- name: ☯️ Restoring Martins LDP Python Scripts from Cache
|
- name: ↪️ Restoring Martins LDP Python Scripts from Cache
|
||||||
|
id: pythontldp
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
path: ~/work/python-tldp/deb_dist
|
path: ~/work/python-tldp/deb_dist
|
||||||
key: python-tldp
|
key: ${{ runner.os }}-pythontldp
|
||||||
|
|
||||||
- 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.pythontldp.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
cd ~/work
|
cd ~/work
|
||||||
git clone https://github.com/tLDP/python-tldp
|
git clone https://github.com/tLDP/python-tldp
|
||||||
|
@ -55,10 +56,11 @@ jobs:
|
||||||
SSH_KEY: ${{secrets.SSHK}}
|
SSH_KEY: ${{secrets.SSHK}}
|
||||||
|
|
||||||
- name: ↪️ Restoring Recent Production (Master Branch) LDP Docs from Cache if Available
|
- name: ↪️ Restoring Recent Production (Master Branch) LDP Docs from Cache if Available
|
||||||
|
id: ldpdocsmain
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
path: ~/work/MAIN
|
path: ~/work/MAIN
|
||||||
key: ldpdocs-main
|
key: ${{ runner.os }}-ldpdocsmain
|
||||||
|
|
||||||
- name: 🔀 Restoring Most Current Production (Master Branch) LDP Docs from LDP WWW Server
|
- name: 🔀 Restoring Most Current Production (Master Branch) LDP Docs from LDP WWW Server
|
||||||
run: |
|
run: |
|
||||||
|
@ -68,17 +70,16 @@ jobs:
|
||||||
|
|
||||||
- name: 🧱 LDP Documents Processing via Martins scripts
|
- name: 🧱 LDP Documents Processing via Martins scripts
|
||||||
run: |
|
run: |
|
||||||
|
ls -alR ~
|
||||||
cd ~/work
|
cd ~/work
|
||||||
mkdir -p BUILD
|
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 --list
|
||||||
ldptool --loglevel info --builddir BUILD --configfile LDP/LDP/.github/builder.ldptool.cfg --pubdir MAIN --publish
|
ldptool --loglevel info --builddir BUILD --configfile LDP/LDP/.github/builder.ldptool.cfg --pubdir MAIN --publish
|
||||||
ls -alR ~
|
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
# - name: 🔀 Built Documents Transfer for Master
|
- name: 🔀 Built Documents Transfer for Master Main Documents WWW Server
|
||||||
# run:
|
run:
|
||||||
# rsync --stats -rvclz --delete-before -e "ssh -p $LDPPORT -i ~/.ssh/ldpkey" ~work/MAIN/ $LDPUSER@$LDPHOST:/home/builder/build/en
|
rsync --stats -rvclz --delete-before -e "ssh -p $LDPPORT -i ~/.ssh/ldpkey" ~work/MAIN/ $LDPUSER@$LDPHOST:/home/builder/build/en
|
||||||
# shell: bash
|
shell: bash
|
||||||
|
|
||||||
# happy end.
|
# happy end.
|
||||||
|
|
Loading…
Reference in New Issue