kip

kip

ex_cldr Core Team

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

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:

Good luck.

Also Liked

c4710n

c4710n

I would like to break the task in two parts:

  1. 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.

  2. Then, deploy the static website to GitHub Pages. There’re a bunch of articles related to this, such as:

    Although these articles are for Hugo, but they works for any static sites.

TwistingTwists

TwistingTwists

I was googling on how other things work with gh-pages.

Here are a few things I understand.

  1. build step and upload to ./dist folder in the repo
    ant-design/docs/blog/github-actions-workflow.en-US.md at a355f0947292c542f7c4f993d0bec821b8bfa0a4 · afc163/ant-design · GitHub

  2. 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

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!

kip

kip

ex_cldr Core Team

Thanks all very much for the suggestions. And a special shoutout to @zorn, I’ll be giving the recipes a workout on a long flight later this week.

Where Next?

Popular in Questions Top

gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
joaquinalcerro
Hi there, I am working with Ecto-Postgresql and I need to call all of the records from a specific table but the table has 40,000 record...
New
_russellb
I want to try my hand at web scraping. What tools/libraries do I need to use. I’m hoping to turn this into something professional so don’...
New
lastday4you
I wanted to check elixir version in phoenix because i found that my elixir is 1.5 but when i use Enum.chunk_by it said the function is un...
New
myronmarston
The Elixir Typespec docs show the following syntax for keyword lists in typespecs: # ... | [key: type] # keyword lis...
New
mathew4509
I have a list say x = ["23gh", "56kh", "97mh"] I would like to pass each element to Val in each iteration. Say, in iteration 1 -------...
New
fireproofsocks
Forgive me if this is obvious, but how does one delete a database record WITHOUT selecting it first? https://hexdocs.pm/ecto/Ecto.Repo.h...
New
Exadra37
Sometimes I want to check if the input into a function is not a blank string. My first approach: defmodule Example do def do_stuff(s...
New
hpopp
To simplify some tasks at work, I wrote and published this package yesterday. It’s a simple macro that enables Access behaviour on struct...
New

Other popular topics Top

JakeBecker
TL;DR: I’ve just released an implementation of Microsoft’s IDE-independent Language Server Protocol for Elixir. It adds language support ...
1140 51847 244
New
pmjoe
I have a relationship of love and hate with Elixir. Lots of things are just absolutely right, but there are some things that are kind of ...
New
William
I would like to know that is there any online source for learning Phoenix Framework for building E-Commerce Store? Any advantage on build...
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
albydarned
Hello all! I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily dr...
New
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
grych
Hi folks, Few months ago I have announced the proof-of-concept of the library to manipulate the browsers DOM objects directly from Elixi...
639 49522 488
New
fireproofsocks
Forgive me if this is obvious, but how does one delete a database record WITHOUT selecting it first? https://hexdocs.pm/ecto/Ecto.Repo.h...
New
chrisalley
ExUnit now has describe blocks which is a welcome addition coming from RSpec. In the docs, it states that nested hierarchies of describe ...
New
Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID<0.412.0> terminating ** (Postgrex.Error) FATAL...
New

We're in Beta

About us Mission Statement