synshop / rtfm

SYN Shop related documentation. Pull requests welcome!
https://rtfm.synshop.org/
7 stars 12 forks source link

Build CI process is broken - no more updates to live RTFM site #37

Closed mrjones-plip closed 2 years ago

mrjones-plip commented 2 years ago

This site uses a Crayon-Architect CI process which ran in Travis to publish changes on this repo to live site. Back in 2020 Travis made changes so that OSS wasn't as free to run CI jobs on Travis.

We should move the CI process to GH Actions and remove both Travis and Crayon-Architect as we can do it all natively now. Anytime a PR or commit is merged to master we should push it to to rtfm-generated repo. See examples here and here.

mrjones-plip commented 2 years ago

Hmmm - I think we're close! I

  1. created a user monitoring-synshop-bot
  2. gave this user write access to the repo here
  3. generated a personal access token in monitoring-synshop-bot account here
  4. added a secret and shared it with rtfm-generated repo here
  5. Now when anyone writes to master, it runs the CI correctly, pushes it to https://github.com/synshop/rtfm-generated, but it just deletes everything.

I think maybe publish_dir isn't right here?

I restored to last known good commit with this (see below), site is back up, I'll work on this some more later:

git clone git@github.com:synshop/rtfm-generated.git
cd rtfm-generated
git reset --hard 1a0db1df18f5a648e85b7672efccfaaadfd6e3f3
git reset --soft "HEAD@{1}"
git commit -m "Revert to 1a0db1df18f5a648e85b7672efccfaaadfd6e3f3"
git push origin master
mrjones-plip commented 2 years ago

publish_dir: ./local_public/ was the answer \o/