mirror of
https://github.com/tLDP/LDP.git
synced 2025-11-30 23:16:02 +07:00
Setting Up Docs Builder via GitHub Actions
This commit is contained in:
14
.github/workflows/main.yml
vendored
14
.github/workflows/main.yml
vendored
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user