kip
Nimble_publisher to GitHub pages - anyone done this and care to share?
I’m heading down the path of using nimble_publisher to publish to Github Pages using github’s deploy-action to generate and upload artifacts.
Anyone walked this path before and has any suggestions, scripts or experience to share?
I’m heading this way for simplicity - simple design, static site, hosting along side the code repo.
Marked As Solved
zorn
I used GitHub Actions to publish the docs of my Elixir project to GitHub Pages (using the current beta deployment target instead of a separate repo). You can check out the action here:
https://github.com/zorn/franklin/blob/main/.github/workflows/elixir-publish-docs.yml
Good luck.
Also Liked
c4710n
I would like to break the task in two parts:
-
Generate a static website: Fly.io has an article related to this topic - Crafting your own Static Site Generator using Phoenix · The Phoenix Files , it introduces how to generate a static site using nimble_publisher.
-
Then, deploy the static website to GitHub Pages. There’re a bunch of articles related to this, such as:
- Host on GitHub Pages
- Hugo: Deploy Static Site using GitHub Actions
- … (you can search more with keyword ‘deploy static website github ci’)
Although these articles are for Hugo, but they works for any static sites.
TwistingTwists
I was googling on how other things work with gh-pages.
Here are a few things I understand.
-
build step and upload to
./distfolder in the repo
ant-design/docs/blog/github-actions-workflow.en-US.md at a355f0947292c542f7c4f993d0bec821b8bfa0a4 · afc163/ant-design · GitHub -
then use ant-design/docs/blog/github-actions-workflow.en-US.md at a355f0947292c542f7c4f993d0bec821b8bfa0a4 · afc163/ant-design · GitHub to publish to github pages.
I believe steps should be similar. Haven’t tried this one though. Maybe during upcoming week, I will!
christhekeele
I came here to post exactly this, having evaluated this stack recently. Found the same resources and whipped together a prototype very quickly before deciding on another course, but it works great!
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance










