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

Introducing GitPub #1

Closed
StartAutomating opened this issue Oct 10, 2022 · 0 comments
Closed

Introducing GitPub #1

StartAutomating opened this issue Oct 10, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request Post Issues that will become posts

Comments

@StartAutomating
Copy link
Owner

StartAutomating commented Oct 10, 2022

Introducing GitPub

GitPub is a GitHub Action and PowerShell Module that helps Easily Automate Publishing from GitHub.

What does GitPub do?

GitPub gives you a flexible framework for converting content (primarily from GitHub) into published content.

For example, you can turn GitHub issues that match a certain label into Jeykll posts within a GitHub Page.

You might be reading output from GitPub that way right now. This post started as this GitHub issue.

Publishing this way makes for a more virtuous cycle when working with GitHub.

If you write high quality issues or release notes, you can share them with the world without breaking a sweat.

Using GitPub

You can use GitPub as a GitHub Action or as a PowerShell Module.

Using the GitPub action

You can easily use GitPub as a GitHub action.

In fact, GitPub uses itself to publish whenever issues change. See this simple workflow for reference.

Using the GitPub module

You can install GitPub from the PowerShell Gallery, or download a release from github:

Install-Module GitPub -Scope CurrentUser -Force
Import-Module GitPub -Force -PassThru

How GitPub Works

GitPub works using the simple concepts of Sources and Publishers.

GitPub Sources

A source is a function that provides content to post. GitPub comes with three sources:

Source Function Description
Gist Get-GitPubGist Turns gists into posts
Issue Get-GitPubIssue Turns issues into posts
Release Get-GitPubRelease Turns releases into posts
# List all sources
Get-GitPub |
    Select-Object -ExpandProperty Sources

GitPub Publishers

A publisher is a function that finalizes content and publishes it. GitPub comes with one publisher:

Source Function Description
Jeykll Publish-GitPubJeykll Publishes content to _posts directories
# List all publishers
Get-GitPub |
    Select-Object -ExpandProperty Publishers

Hopefully, as GitPub grows, these lists will grow with it.

@StartAutomating StartAutomating added enhancement New feature or request Post Issues that will become posts labels Oct 10, 2022
@StartAutomating StartAutomating self-assigned this Oct 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Post Issues that will become posts
Projects
None yet
Development

No branches or pull requests

1 participant