Skip to content
This repository was archived by the owner on Oct 7, 2025. It is now read-only.
Merged
Changes from all commits
Commits
Show all changes
131 commits
Select commit Hold shift + click to select a range
c5d4613
Altering workflow in GitHub Actions for building wiki2pages files.
gregharvey Jan 3, 2025
c3a23d5
Merging devel.
gregharvey Jan 3, 2025
8476101
Attempting to set a hosts file for Ansible in CI.
gregharvey Jan 3, 2025
142a368
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
327db08
Trying to force Ansible host.
gregharvey Jan 3, 2025
b5d201a
Trying to force Ansible host.
gregharvey Jan 3, 2025
6d531c9
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
64530b1
Trying with an inventory file instead.
gregharvey Jan 3, 2025
d9067fb
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
a8ba1c4
Running Ansible as the 'ce-dev' user.
gregharvey Jan 3, 2025
4fa8896
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
9d8b47c
Fixing path to playbook.
gregharvey Jan 3, 2025
b2527c6
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
c87bbd0
Disabling host key checking.
gregharvey Jan 3, 2025
1ec568f
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
5bd801e
Disabling host checking in SSH.
gregharvey Jan 3, 2025
5549a10
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
7f08219
Trying to use ce-dev user instead of root.
gregharvey Jan 3, 2025
7466bc3
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
f9e29fc
Fixing path to scripts.
gregharvey Jan 3, 2025
1226ca4
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
c120476
Adding some debug lines to check playbooks.
gregharvey Jan 3, 2025
acafa39
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
caa1b90
Fixing workspace volume mount point.
gregharvey Jan 3, 2025
cf524fd
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
6366701
Trying a whole new /build location.
gregharvey Jan 3, 2025
0eef216
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
15af1c3
Setting permissions on mounted disk.
gregharvey Jan 3, 2025
aca17d1
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
a5f04de
Checking ce-dev dir contents.
gregharvey Jan 3, 2025
7ac35e3
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
6bc2055
Changing mount point to not destroy ce-dev files.
gregharvey Jan 3, 2025
3ce8fd5
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
c562607
Commenting permissions line.
gregharvey Jan 3, 2025
763bcf1
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
9502efe
Fixing playbook paths.
gregharvey Jan 3, 2025
52e2f26
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
88a7b12
Outputting hosts and SSH config for debug.
gregharvey Jan 3, 2025
1b83d48
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
084eaa3
Checking SSH settings.
gregharvey Jan 3, 2025
d069d96
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
53b00d7
Manually creating authorized_keys.
gregharvey Jan 3, 2025
2e7d1ab
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
4e02937
Fixing path to set-current.
gregharvey Jan 3, 2025
d4ac0e9
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
36c0aeb
Refactoring SSH set-up and looking at set-current script.
gregharvey Jan 3, 2025
8506c61
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
5c4d4eb
Trying to fix mount point.
gregharvey Jan 3, 2025
45b58be
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
a16ec18
Updating paths to generated docs.
gregharvey Jan 3, 2025
9794ecb
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
5c83f82
Trying to pass in path to wiki2pages.
gregharvey Jan 3, 2025
bcc9939
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
a077a5f
Removing obsolete debug line.
gregharvey Jan 3, 2025
47fb34e
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
9ce237e
Correcting path to script.
gregharvey Jan 3, 2025
0f7d413
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
06c8b08
Changing path we execute from.
gregharvey Jan 3, 2025
d5f79ee
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
0f8be8b
Adding first pass at docs publish step.
gregharvey Jan 6, 2025
4660e07
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 6, 2025
cdb28c2
Repairing working dir paths.
gregharvey Jan 6, 2025
ef847a8
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 6, 2025
93751a4
Incorrect repo path.
gregharvey Jan 6, 2025
f9e702d
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 6, 2025
d8f3908
Removing most of the debug lines.
gregharvey Jan 6, 2025
e0ba0c6
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 6, 2025
932234e
Catching up devel. (#2163)
gregharvey Jan 6, 2025
8817473
Merge branch '2.x' into publish_docs
gregharvey Jan 6, 2025
4475d2c
Adding more debug to try to find where 1.x is coming from.
gregharvey Jan 6, 2025
15f8dc5
Merge branch 'devel-2.x' of github.com:codeenigma/ce-provision into p…
gregharvey Jan 6, 2025
c4323bd
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 6, 2025
c160c4a
Merge branch '2.x' of github.com:codeenigma/ce-provision into publish…
gregharvey Jan 6, 2025
ffa9d84
Merge branch 'publish_docs' into publish_docs-PR-2.x
gregharvey Jan 6, 2025
106eba2
Moving the hugo script check.
gregharvey Jan 6, 2025
f222906
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 6, 2025
034e9cc
Merge branch 'publish_docs' into publish_docs-PR-2.x
gregharvey Jan 6, 2025
6046249
More debug.
gregharvey Jan 6, 2025
fd3bd5c
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 6, 2025
eba6deb
Merge branch 'publish_docs' into publish_docs-PR-2.x
gregharvey Jan 6, 2025
45bdf53
Moving the config.toml debug line.
gregharvey Jan 6, 2025
0da09a8
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 6, 2025
3220cdc
Merge branch 'publish_docs' into publish_docs-PR-2.x
gregharvey Jan 6, 2025
ab4fb33
Checking the entire disk for 2.x.
gregharvey Jan 6, 2025
a0002e1
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 6, 2025
c771e74
Merge branch 'publish_docs' into publish_docs-PR-2.x
gregharvey Jan 6, 2025
2ca4c86
Trying a find instead of a grep.
gregharvey Jan 6, 2025
792b8af
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 6, 2025
31c8114
Merge branch 'publish_docs' into publish_docs-PR-2.x
gregharvey Jan 6, 2025
c0c4ecb
Trying to update ce-provision and ce-deploy.
gregharvey Jan 6, 2025
a40c2c9
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 6, 2025
67faf7e
Merge branch 'publish_docs' into publish_docs-PR-2.x
gregharvey Jan 6, 2025
1a3a477
Getting more debug info.
gregharvey Jan 6, 2025
93c3408
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 6, 2025
09ff288
Merge branch 'publish_docs' into publish_docs-PR-2.x
gregharvey Jan 6, 2025
3d28ca9
Adding --verbose to Ansible.
gregharvey Jan 6, 2025
e6720b4
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 6, 2025
c6790ab
Merge branch 'publish_docs' into publish_docs-PR-2.x
gregharvey Jan 6, 2025
552afee
Trying running Hugo directly.
gregharvey Jan 6, 2025
49f205a
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 6, 2025
cdc0a80
Merge branch 'publish_docs' into publish_docs-PR-2.x
gregharvey Jan 6, 2025
60c41d5
Changed the Hugo start script.
gregharvey Jan 6, 2025
d4756f7
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 6, 2025
f6d05ac
Merge branch 'publish_docs' into publish_docs-PR-2.x
gregharvey Jan 6, 2025
e6fe660
Trying just running 'hugo' in the right directory.
gregharvey Jan 6, 2025
44cfc48
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 6, 2025
15c8108
Merge branch 'publish_docs' into publish_docs-PR-2.x
gregharvey Jan 6, 2025
df6648f
Adding ce-deploy back in with option to not run Hugo.
gregharvey Jan 6, 2025
defd36a
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 6, 2025
5a111db
Merge branch 'publish_docs' into publish_docs-PR-2.x
gregharvey Jan 6, 2025
d93a1ce
Updating docs to make _Sidebar.md lose the starting slash.
gregharvey Jan 7, 2025
a263192
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 7, 2025
c6a098a
Merge branch 'publish_docs' into publish_docs-PR-2.x
gregharvey Jan 7, 2025
c103b43
Publish docs pr devel 2.x (#2165)
gregharvey Jan 7, 2025
eacd10b
Changing sidebar paths didn't fix Hugo.
gregharvey Jan 7, 2025
f472eb8
Merge branch 'devel-2.x' of github.com:codeenigma/ce-provision into p…
gregharvey Jan 7, 2025
8f29992
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 7, 2025
ff0978c
Merge branch '2.x' of github.com:codeenigma/ce-provision into publish…
gregharvey Jan 7, 2025
6927243
Merge branch 'publish_docs' into publish_docs-PR-2.x
gregharvey Jan 7, 2025
b7adb17
Merge branch '2.x' into publish_docs
gregharvey Jan 7, 2025
e0537aa
Re-removing opening slash to fix Hugo.
gregharvey Jan 7, 2025
45549ae
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 7, 2025
7b78e1d
Merge branch 'publish_docs' into publish_docs-PR-2.x
gregharvey Jan 7, 2025
5ab3362
Merge remote-tracking branch 'origin/publish_docs-PR-devel-2.x' into …
gregharvey Jan 7, 2025
1a0c962
Fixing Sidebar merge issues.
gregharvey Jan 7, 2025
946442f
Making the publish docs CI work with 1.x and 2.x.
gregharvey Jan 7, 2025
dc19b05
Merge branch '2.x' of github.com:codeenigma/ce-provision into publish…
gregharvey Jan 7, 2025
25b6c40
Merge branch 'publish_docs' into publish_docs-PR-2.x
gregharvey Jan 7, 2025
d71d4b7
Merge branch '2.x' into publish_docs
gregharvey Jan 7, 2025
031254b
Only run when PRs are closed.
gregharvey Jan 7, 2025
8b87fe2
Merge branch 'publish_docs' into publish_docs-PR-2.x
gregharvey Jan 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 11 additions & 10 deletions .github/workflows/ce-provision-publish-docs.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
name: Publish docs

# Run this workflow on demand and every time a new commit pushed to your repository
# Run this workflow on demand or every time a PR is accepted to a main branch
on:
pull_request:
# branches:
# - 1.x
# - 2.x
types: [closed]
branches:
- 1.x
- 2.x
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -49,20 +50,20 @@ jobs:
- name: Start SSHD
run: /usr/sbin/sshd&

- name: Initialise wiki2pages for ce-provision 2.x
- name: Initialise wiki2pages for ce-provision ${{ github.event.pull_request.base.ref }}
run: |
/usr/bin/su - ce-dev -c "cd /home/ce-dev/build/wiki2pages && /bin/sh init.sh --repo https://github.com/codeenigma/ce-provision.git --branch 2.x --no-ce-dev"
/usr/bin/su - ce-dev -c "cd /home/ce-dev/build/wiki2pages && /bin/sh init.sh --repo https://github.com/codeenigma/ce-provision.git --branch ${{ github.event.pull_request.base.ref }} --no-ce-dev"
/usr/bin/su - ce-dev -c "cd /home/ce-dev/build/wiki2pages && /home/ce-dev/ansible/bin/ansible-playbook -e 'wiki2pages_build_path=/home/ce-dev/build/wiki2pages' -i /home/ce-dev/ansible/bin/hosts /home/ce-dev/build/wiki2pages/ce-dev/ansible/provision.yml"
/usr/bin/su - ce-dev -c "cd /home/ce-dev/build/wiki2pages && /bin/sh set-current.sh --project ce-provision-2.x --no-ce-dev"
/usr/bin/su - ce-dev -c "cd /home/ce-dev/build/wiki2pages && /bin/sh set-current.sh --project ce-provision-${{ github.event.pull_request.base.ref }} --no-ce-dev"
/usr/bin/su - ce-dev -c "cd /home/ce-dev/build/wiki2pages && /home/ce-dev/ansible/bin/ansible-playbook -e 'wiki2pages_build_path=/home/ce-dev/build/wiki2pages launch_hugo_server=false' -i /home/ce-dev/ansible/bin/hosts /home/ce-dev/build/wiki2pages/ce-dev/ansible/deploy.yml"

- name: Run Hugo
run: |
/usr/bin/su - ce-dev -c "cd /home/ce-dev/build/wiki2pages && hugo"
ls -la /home/ce-dev/build/wiki2pages/public/ce-provision-2.x/
ls -la /home/ce-dev/build/wiki2pages/public/ce-provision-${{ github.event.pull_request.base.ref }}/

- name: Publish documentation
run: |
/usr/bin/su - ce-dev -c "cd /home/ce-dev/build/wiki2pages && /bin/sh /home/ce-dev/build/wiki2pages/.github-actions-push.sh"
/usr/bin/su - ce-dev -c "cd /home/ce-dev/build/wiki2pages/public/ce-provision-2.x && /usr/bin/git remote add ci https://${{ secrets.DOCS_GITHUB_TOKEN }}@github.com/codeenigma/ce-provision-docs.git"
/usr/bin/su - ce-dev -c "cd /home/ce-dev/build/wiki2pages/public/ce-provision-2.x && /usr/bin/git push ci master"
/usr/bin/su - ce-dev -c "cd /home/ce-dev/build/wiki2pages/public/ce-provision-${{ github.event.pull_request.base.ref }} && /usr/bin/git remote add ci https://${{ secrets.DOCS_GITHUB_TOKEN }}@github.com/codeenigma/ce-provision-docs.git"
/usr/bin/su - ce-dev -c "cd /home/ce-dev/build/wiki2pages/public/ce-provision-${{ github.event.pull_request.base.ref }} && /usr/bin/git push ci master"
Loading