Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add example github action to host as github pages #1

Closed
bircher opened this issue Nov 4, 2021 · 4 comments · Fixed by #12
Closed

Add example github action to host as github pages #1

bircher opened this issue Nov 4, 2021 · 4 comments · Fixed by #12

Comments

@bircher
Copy link

bircher commented Nov 4, 2021

This is a fabulous contraption!
I just found this from https://www.drupal.org/project/ideas/issues/3230448#comment-14280222

All it needs is a template github action that (generates the static site with tome if not already done in gitpod and) publishes the static site in a github page.

Then the workflow is complete! When you want to edit the site you spin it up in gitpod, you save the content, export it and generate the static site, commit everything. Then github updates the site.

@Decipher
Copy link
Member

Hi @bircher,

I have a Druxt version of this template for Decoupled/Serverless Drupal with Nuxt.js, and I would definitely like to investigate GitHub actions for that project.

If you have any resources or example workflows, please provide some links. And PRs very welcomed.

@mortenson
Copy link

tome-project now includes an example build for GitHub pages (and netlify in another file): https://github.com/drupal-tome/tome-project/blob/master/.example_github/workflows/build.yml

For a "real life" version, you can see how my site is built: https://github.com/mortenson/mortenson.github.io/blob/develop/.github/workflows/build.yml

Decipher added a commit that referenced this issue Mar 6, 2022
Decipher added a commit that referenced this issue Mar 6, 2022
Decipher added a commit that referenced this issue Mar 6, 2022
Decipher added a commit that referenced this issue Mar 6, 2022
Decipher added a commit that referenced this issue Mar 6, 2022
Decipher added a commit that referenced this issue Mar 6, 2022
Decipher added a commit that referenced this issue Mar 6, 2022
Decipher added a commit that referenced this issue Mar 6, 2022
Decipher added a commit that referenced this issue Mar 6, 2022
Decipher added a commit that referenced this issue Mar 6, 2022
Decipher added a commit that referenced this issue Mar 6, 2022
Decipher added a commit that referenced this issue Mar 6, 2022
* feat(#1): add github workflow

* chore(#1): update workflow

* chore(#1): add ddev

* chore(#1): update workflow

* chore(#1): test url

* chore(#1): disable 404

* chore(#1): update url

* chore(#1): disable github token

* chore(#1): update url

* chore(#1): update workflow

* chore(#1): update branch
@Decipher
Copy link
Member

Decipher commented Mar 6, 2022

I've added a a version based of @mortenson's workflows and other workflows I have in place: https://github.com/drupalpod/drupalpod-tome-starterkit/blob/main/.github/workflows/main.yml

You can see the deployed page @ https://drupalpod.github.io/drupalpod-tome-starterkit/

@bircher
Copy link
Author

bircher commented Mar 7, 2022

amazing! I haven't had time to follow this but I will give it a go hopefully soon!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants