From 15483653b246eba3ed72d1b4e6cae6587d479616 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=8E=A0=E1=8E=A1=2E=20=D0=85=CF=B5rg=CF=B5=20=D1=B4ictor?= Date: Fri, 31 Jan 2020 09:33:25 +0700 Subject: [PATCH] Setting Up Docs Builder via GitHub Actions --- .github/workflows/main.yml | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3c1b3813..1897d2de 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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.