RAUI-labs / raui

Rust implementation of Renderer Agnostic User Interface
https://raui-labs.github.io/raui/
Other
399 stars 10 forks source link

Failing Website Build #50

Closed zicklag closed 3 years ago

zicklag commented 3 years ago

https://github.com/RAUI-labs/raui/blob/8f765a2a8439822440a0b0be809ca97d49818b76/.github/workflows/website.yml#L33

The build is failing for the website and a quick look at the GitHub action, says that you have to create a personal access token and add it to your secrets to allow the site to deploy:

image

PsichiX commented 3 years ago

ah, that's why! lemme make that one

zicklag commented 3 years ago

You should be able to re-run the build after setting the secret with this button when viewing the failed build.

image

PsichiX commented 3 years ago

hmm, is there an article about how to properly setup created secret to work with given repo? i'm having problems with the setup after i've created personal secret by following links in Zola readme 🤔

zicklag commented 3 years ago

Not that I know of. :thinking:

I think that you have to creat the token, and then go to the repo settings and add the token as a secret like this:

image

image

Also, we'll need to update the URL in the zola config.toml now that the repo org has changed and the URL will be different.

PsichiX commented 3 years ago

great! adding secret to repo and soon will push changes within config.toml

PsichiX commented 3 years ago

https://github.com/RAUI-labs/raui/runs/2570636086

i've ran cargo fmt --all after doing merge of local and remote next branch, but that should format only rust code - could that make this error? 🤔

zicklag commented 3 years ago

Oh, that's weird. I think it's trying to interpret the built zola site as a Jekyll site. We might need to add a .nojekyll file to the site/static folder to make sure that GitHub doesn't try to build the site as a Jekyll site.

zicklag commented 3 years ago

Ah yeah, here's the doc:

image

PsichiX commented 3 years ago

i think that site/static wasn't the proper place for me to put that file into :D what directory is the "root of publishing source"? 🤔

zicklag commented 3 years ago

It looks like that one worked: https://github.com/RAUI-labs/raui/actions/runs/837008605

zicklag commented 3 years ago

Oh, did you set GitHub pages to use the gh-pages branch to deploy?

PsichiX commented 3 years ago

probably 😅 i'm basically newbie when it comes to zola and GH pages :D

zicklag commented 3 years ago

image

zicklag commented 3 years ago

That's what you should do.

zicklag commented 3 years ago

probably sweat_smile i'm basically newbie when it comes to zola and GH pages :D

No problem. :D

I'm new to Zola, too.

I think putting .nojekyll in the static did work, we just need to make sure that GitHub pages is using the gh-pages branch and not the master branch to deploy.

PsichiX commented 3 years ago

ok, so i've changed pages branch to gh-pages, also in last commit i've moved .nojekyll to site/.nojekyll but i don't see that change failed zola build so i think it can stay there.

i believe that i should re-run zola build again to make GH pages use gh-pages branch after change?

PsichiX commented 3 years ago

hmm, no, something is wrong again xD ok, i'll move back .nojekyll to static and re-run all jobs

zicklag commented 3 years ago

I think that will work. :)

PsichiX commented 3 years ago

YAY, we're live! :D :D :D

zicklag commented 3 years ago

It worked!!!! 🤯

Yay!

PsichiX commented 3 years ago

thanks for your great help with it <3

zicklag commented 3 years ago

Now we just need to update the repo link!

PsichiX commented 3 years ago

where? :O i thought i've fixed URLs in all places :O

zicklag commented 3 years ago

Glad I could help! It was good experience and I learned quite a bit from it. :)

zicklag commented 3 years ago

Just the one that pops up here:

image

The one that you set from the repo description.

zicklag commented 3 years ago

image

PsichiX commented 3 years ago

changed and added tags :D

zicklag commented 3 years ago

Perfect!