Auto-update blog content from Obsidian: 2025-05-04 13:29:49

This commit is contained in:
Gitea Actions 2025-05-04 13:29:50 +00:00
parent a4d389c498
commit d27b0a85c4

View File

@ -96,7 +96,6 @@ I added this token as secret `REPO_TOKEN` in the repository
I needed to create the workflow that will spin-up a container and do the following: I needed to create the workflow that will spin-up a container and do the following:
- When I push new/updated files in the `Blog` folder - When I push new/updated files in the `Blog` folder
- Install `rsync`
- Checkout the current repository (Obsidian vault) - Checkout the current repository (Obsidian vault)
- Clone the blog repository - Clone the blog repository
- Transfer blog content from Obsidian - Transfer blog content from Obsidian
@ -163,7 +162,6 @@ Obsidian uses wiki-style links for images, like `![[image name.png]]`, which isn
The blog repository contains the full Hugo site, including the synced content and theme. The blog repository contains the full Hugo site, including the synced content and theme.
Its workflow: Its workflow:
- Install `jq`
- Checkout the blog repository - Checkout the blog repository
- Check if the Hugo version is up-to-date. If not, it downloads the latest release and replaces the old binary. - Check if the Hugo version is up-to-date. If not, it downloads the latest release and replaces the old binary.
- Build the static website using Hugo. - Build the static website using Hugo.