Skip to content

Instantly share code, notes, and snippets.

@bsrz
Last active September 4, 2023 18:51
Show Gist options
  • Select an option

  • Save bsrz/d761dceb5bb7fa23b214e942c4d2bdd3 to your computer and use it in GitHub Desktop.

Select an option

Save bsrz/d761dceb5bb7fa23b214e942c4d2bdd3 to your computer and use it in GitHub Desktop.

Getting Started

$ mint run publish deploy
Building for debugging...
Build complete! (0.15s)
Publishing HelloPublish (7 steps)
[1/7] Copy 'Resources' files
[2/7] Add Markdown files from 'Content' folder
[3/7] Sort items
[4/7] Generate HTML
[5/7] Generate RSS feed
[6/7] Generate site map
[7/7] Deploy using Git ([email protected]:username/repository.git)
✅ Successfully published HelloPublish
* (origin/gh-pages) ad32347 <bsrz> (40 minutes ago) Publish deploy 2023-09-04 14:06
* 085062d <bsrz> (2 hours ago) Publish deploy 2023-09-04 12:32
|
* d5e2dea <bsrz> (4 hours ago) Publish deploy 2023-09-04 10:42
|
* 2061f4c <bsrz> (4 months ago) Publish deploy 2023-05-07 15:05
|
* dba66b6 <bsrz> (4 months ago) Publish deploy 2023-05-07 01:55
|
* d43f8a9 <bsrz> (5 months ago) Initial commit
* (HEAD -> main, origin/main, origin/HEAD) 90f8a33 <bsrz> (40 minutes ago) Adding publish part 3
|
* c3f59fe <bsrz> (2 hours ago) Adding publish part 2
|
* 18512bc <bsrz> (5 weeks ago) Adding publish part 1
|
* 2bb9cc1 <bsrz> (4 years ago) Initial commit
try HelloPublish().publish(withTheme: .hello)
try HelloPublish().publish(
withTheme: /* theme */,
indentation: /* indentation */,
at: /* path */,
rssFeedSections: /* rss feed sections */,
rssFeedConfig: /* rss feed config */,
deployedUsing: /* deployed using */,
additionalSteps: /* additional steps */,
plugins: /* plugins */
)
try HelloPublish().publish(using: [
.addMarkdownFiles(),
.copyResources(),
.addFavoriteItems(),
.addDefaultSectionTitles(),
.generateHTML(withTheme: .hello),
.generateRSSFeed(including: [.hello]),
.generateSiteMap()
])
try HelloPublish().publish(
withTheme: .hello,
deployedUsing: .gitHub("username/repository", branch: "gh-pages", useSSH: true)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment