Skip to content

sookim-1/k-swift-publish-blog

Repository files navigation

create_post build-and-deploy

logo

This repository was created with reference to ios-osushi's website. It uses the Publish library, which helps you conveniently create static websites using the Swift language.

This repository is for a personal blog where I post weekly development retrospectives.

Example

sample_website_capture

How to Customize

You can use this repository to build your own personal T.W.L (Today We Learned) blog.

  1. Fork this repository.
  2. Add your Markdown files to the Content/posts folder.
  3. Modify the variables in Global.swift to match your information.
  4. Open the project in Xcode and build it for "My Mac". An Output folder will be generated. Add the contents of this folder to your username.github.io repository to complete the hosting.

Post Markdown Format Example

---
date: 2024-01-01 23:00
description: Creating the blog
tags: iOS, Swift
---
# Number: 001, Date: 2024-01-01

How to Run Workflows

Automatic GitHub Pages Deployment Workflow

  1. Add a new Markdown file to the Content/posts folder.
  2. When the new commit is merged into the main branch, the build-and-deploy.yml workflow will be triggered.
  3. Once the workflow succeeds, the site will be deployed to your username.github.io remote repository.

Post Creation Workflow

  1. Run the create_post.yml workflow manually.
  2. You will be prompted to enter a post number, creation date, and the start/end dates for your retrospective. The workflow will then automatically create a new post file and open a Pull Request.
  3. Edit the content of the new post, then merge the Pull Request. The blog will be deployed following the automatic deployment steps mentioned above.

About

Publish 활용한 Blog Archive 저장소

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published