Setting Up Docs Builder via GitHub Actions

This commit is contained in:
ᎠᎡ. Ѕϵrgϵ Ѵictor 2020-01-31 09:08:26 +07:00
parent 21ce387804
commit 997256efd2
1 changed files with 7 additions and 7 deletions

View File

@ -24,7 +24,7 @@ jobs:
- name: ☯️ Restoring Martins LDP Python Scripts from Cache
uses: actions/cache@v1
with:
path: python-tldp/deb_dist
path: ~/work/python-tldp/deb_dist
key: python-tldp
- name: 🧱 Compiling Martins LDP Python Scripts if not Found in Cache
@ -57,28 +57,28 @@ jobs:
- name: ↪️ Restoring Recent Production (Master Branch) LDP Docs from Cache if Available
uses: actions/cache@v1
with:
path: MAIN
path: ~/work/MAIN
key: ldpdocs-main
- 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
mkdir -p ~/work/MAIN
rsync --stats -rvclz --delete-before -e "ssh -p $LDPPORT -i ~/.ssh/ldpkey" $LDPUSER@$LDPHOST:/home/builder/build/en/ ~/work/MAIN
shell: bash
- name: 🧱 LDP Documents Processing via Martins scripts
run: |
cd ~/work
mkdir -p BUILD
ls -alR
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' MAIN/en/ $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
# happy end.