-
Notifications
You must be signed in to change notification settings - Fork 9
Conversation
Adds GH action for using tweego to compile twee files and publish to gh-pages
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not totally sure what you want me to review here @Loquacity
This PR adds the github action, which looks for the .tw file in the ia-guide directory, installs tweego (the compiler), compiles the file, then outputs the resulting HTML file to the gh-pages branch. |
This means that people with no experience with twine/tweego/chapbook can update the .tw file as required, and the gh action will update the mini-site automatically for us. |
@Loquacity I think you are close on this action, but not sure if the file generated at |
Yeah, I was wondering about that. It's definitely created the gh-pages branch. I was wondering if it had to do with the fact that it's not actually merged yet, though. I don't know anything about netlify, so feel free to take it in a different direction! |
OK to merge after @mgan59 verifies Lana's comments above. |
👋 circling back to drive it forward 😄 |
@Loquacity ok, figured this out to some degree.
There is now a new entry https://incubator-thegooddocsproject.dev/. But it isn't fully working yet. From what I'm gathering github by-default things anything served from the With that said, think we need to add a |
@Loquacity I went ahead and added the |
I see the dns is not resolving still, did some more reading. We need to add a matching |
Since I have this served from my personal web server as a test site for now, perhaps we don't need to solve this problem for the incubator. Can we focus on making sure the HTML is building correctly, and then address where it posts it to when we move this into the templates repo? |
hi -- when you're ready to push this live/staging I can update the DNS to add the CNAME :) |
Thanks! We can move this live when the IA Guide is complete. So if @mgan59 is happy that the HTML file is being built properly, I think we can merge this here in incubator, and then when we move it we can work on the publication part of the action. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah the cyoa.html
files has the correct html and renders inside of the gh-page
branch so 👍 this github-action works. 💯
There is a followup with managing the domains and being able to see the builds -- much larger discussion for the group 🤔
run: | | ||
go get github.com/tmedwards/tweego | ||
export PATH=$PATH:$(go env GOPATH)/bin | ||
tweego ia-cyoa.tw -o dist/index.html | ||
tweego -f chapbook-1 ia-guide/ia-cyoa.tw -o dist/ia-cyoa.html |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
curious if you know the specifics on -f chapbook-1
and is cyoa
create your own adventure?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from what I was reading chapbook-1
is like a system/format for tweego?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, -f
is the switch for format
. Twine requires a format which allows you to do different things. The default is sugarcube
but it's pretty basic, I chose chapbook
because it allows you to have text input and better variable handling. FTR, tweego is just the compiler, so it take the Twine file (.twee
or .tw
), and uses the format (in this case, chapbook) to create the HTML. As for my filenames, I've used ia-cyoa
(choose your own adventure) for the interactive version, to differentiate it from ia-static
, which is still to come.
Adds GH action for using tweego to compile twee files and publish to gh-pages
Still todo: create README for the GH-action