mirror of https://github.com/tLDP/LDP
Setting Up Docs Builder via GitHub Actions
This commit is contained in:
parent
ae459d0445
commit
55478b8a37
|
@ -39,45 +39,45 @@ jobs:
|
||||||
cd
|
cd
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Installation of Martins LDP Python Scripts
|
- name: Installation of Martins LDP Python Scripts
|
||||||
run: |
|
run: |
|
||||||
sudo dpkg -i deb_dist/python3-tldp_*_all.deb
|
sudo dpkg -i deb_dist/python3-tldp_*_all.deb
|
||||||
ldptool --dump-cfg
|
ldptool --dump-cfg
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Restoring SSH Key to Manage Documentation Repository
|
- name: Restoring SSH Key to Manage Documentation Repository
|
||||||
run: |
|
run: |
|
||||||
echo "$SSH_KEY" > ~/.ssh/ldpkey
|
echo "$SSH_KEY" > ~/.ssh/ldpkey
|
||||||
chmod 0600 ~/.ssh/ldpkey
|
chmod 0600 ~/.ssh/ldpkey
|
||||||
ssh-keyscan -p $LDPPORT -H $LDPHOST >> ~/.ssh/known_hosts
|
ssh-keyscan -p $LDPPORT -H $LDPHOST >> ~/.ssh/known_hosts
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
SSH_KEY: ${{secrets.SSHK}}
|
SSH_KEY: ${{secrets.SSHK}}
|
||||||
|
|
||||||
# - name: Restoring Production (Master Branch) LDP Docs from Cache
|
# - name: Restoring Production (Master Branch) LDP Docs from Cache
|
||||||
# uses: actions/cache@v1
|
# uses: actions/cache@v1
|
||||||
# with:
|
# with:
|
||||||
# path: MAIN
|
# path: MAIN
|
||||||
# key: ldpdocs-main
|
# key: ldpdocs-main
|
||||||
|
|
||||||
# - name: Restoring Production (Master Branch) LDP Docs from LDP WWW Server
|
# - name: Restoring Production (Master Branch) LDP Docs from LDP WWW Server
|
||||||
# run:
|
# run:
|
||||||
# mkdir -p MAIN
|
# mkdir -p MAIN
|
||||||
# rsync --stats -rvclz --delete-before -e 'ssh -p $LDPPORT -i ~/.ssh/ldpkey' $LDPUSER@$LDPHOST:/home/builder/build/en/ MAIN/en
|
# rsync --stats -rvclz --delete-before -e 'ssh -p $LDPPORT -i ~/.ssh/ldpkey' $LDPUSER@$LDPHOST:/home/builder/build/en/ MAIN/en
|
||||||
# shell: bash
|
# shell: bash
|
||||||
|
|
||||||
- 🧱 LDP Documents Processing via Martins scripts
|
- 🧱 LDP Documents Processing via Martins scripts
|
||||||
run:
|
run:
|
||||||
mkdir BUILD
|
mkdir BUILD
|
||||||
pwd
|
pwd
|
||||||
ls -alR
|
ls -alR
|
||||||
ldptool --loglevel info --builddir BUILD --configfile .github/builder.ldptool.cfg --pubdir MAIN --list
|
ldptool --loglevel info --builddir BUILD --configfile .github/builder.ldptool.cfg --pubdir MAIN --list
|
||||||
ldptool --loglevel info --builddir BUILD --configfile .github/builder.ldptool.cfg --pubdir MAIN --publish
|
ldptool --loglevel info --builddir BUILD --configfile .github/builder.ldptool.cfg --pubdir MAIN --publish
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
# - name: 🔀 Built Documents Transfer for Master
|
# - name: 🔀 Built Documents Transfer for Master
|
||||||
# run:
|
# 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' MAIN/en/ $LDPUSER@$LDPHOST:/home/builder/build/en
|
||||||
# shell: bash
|
# shell: bash
|
||||||
|
|
||||||
# happy end.
|
# happy end.
|
||||||
|
|
Loading…
Reference in New Issue