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

Switch to using submodule for content #103

Merged
merged 4 commits into from
Mar 5, 2025
Merged

Conversation

tylermercer
Copy link
Owner

Prompted by the discussion with Bryan Hogan in the comments of my partial clone post (thanks for the nudge, Bryan, and for your helpful writeup!)

Moving to a separate repo
@tylermercer tylermercer force-pushed the add-content-submodule branch from 5f5d01c to 4d7207f Compare March 5, 2025 05:45
@tylermercer tylermercer changed the title Add content submodule Switch to using submodule for content Mar 5, 2025
Pointing to main on submodule; the latest content should be fetched
for each build
@tylermercer tylermercer force-pushed the add-content-submodule branch from 4d7207f to 01f337f Compare March 5, 2025 05:51
@tylermercer
Copy link
Owner Author

tylermercer commented Mar 5, 2025

Looks like it worked! Updated the content repo and kicked the build here to see if it'll always pull main from the content repo. (If I'm understanding things correctly, it should, because of how I've set up the .gitmodules file.)

EDIT: It did not---turns out the setting in .gitmodules only affects what happens when you run git submodule update --remote.

@tylermercer tylermercer force-pushed the add-content-submodule branch from 47095b5 to 6f77b65 Compare March 5, 2025 05:59
Copy link

github-actions bot commented Mar 5, 2025

Deployed to Cloudflare Pages! 🚀

Name Result
Preview URL: https://add-content-submodule.tylermercer.pages.dev
Last commit: 2c34b5e
Deployed at: 2025-03-05 05:59:58

@tylermercer
Copy link
Owner Author

I got it to pull the latest main on the submodule by adding a step to the deploy pipeline. But I don't like that the repo can get behind still, even though it doesn't affect anything, and I'm not too keen on the need to manually update the submodule in my local copy of the repo.

Overall, though, I think this is good enough. It's so nice to be able to have my writing in a private repo! And now I can check out the content repo by itself on my writing laptop instead of needing a partial clone.

@tylermercer tylermercer merged commit a5ed638 into main Mar 5, 2025
1 check passed
@tylermercer tylermercer deleted the add-content-submodule branch March 5, 2025 06:06
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 this pull request may close these issues.

1 participant