Skip to content

binary-0/Automatic-Tistory-Uploader

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction ✍️

Automatic-Tistory-Uploader is a github action that automatically posts information about repositories to Tistory blogs.

  • This action automatically uploads:

    • Summary of Repository Utilizing the NLTK Module
    • README.md
    • Commit History including commit messages, commit IDs, and corresponding URLs
  • Automatically uploaded posts offer new visitors with a rapid, comprehensive overview of the repository's contents and history.

  • It also empowers users to establish GitHub Events for the automatic uploading of posts to Tistory. (ex. Push, Pull requests ...)

Post Example 🖥️

PostExample

How To Use 🖱️

We used Tistory Open API in this project. To find more information of the API, click on the Link.

Create Access Tokens 🪙

Firstly, create your Tistory blog and issue an token to access the blog. See the follwing blog's instruction if you don't know how to issue a Tistory access token: https://joel-helloworld.tistory.com/59

Then, we want you to store your access token in GitHub Secrets for security.

image

Go to repository setting and clink on 'Secrets and variables / Actions'.

image

Then click the 'New repository secret' button, and add your Tistory access token.

image

The name of the secret variable is up to you, but make sure it is recognizable for future use.

You don't have to worry about your GitHub access token. When GitHub Action is executed, it will be automatically moved by secret variable in order to read your README.md file and commit history.

In other words for newbies of GitHub Actions: Note that the GITHUB_TOKEN is NOT a personal access token. A GitHub Actions runner automatically creates a GITHUB_TOKEN secret to authenticate in your workflow. So, you can start to deploy immediately without any configuration.

Set Up Your Repository 🎛️

  1. Create a folder named .github and create a workflows folder inside it, if it doesn't exist.
  2. Create a new file named tistory-blog-action.yml with the following contents inside the workflows folder:

name: Tistory-Uploader
on:
   push:
            
jobs:
   Upload-Action:
      runs-on: ubuntu-latest
      steps:       
         - name: Automatic-Tistory-Uploader
           uses: binary-0/[email protected]
           with:
              Accesstoken: "${{ secrets.BLOG_ACCESS_TOKEN }}"
              BlogName: "Your Blog Name"
              GithubToken: "${{ secrets.GITHUB_TOKEN }}"

  1. Replace the above 'BlogName' with your own blog name. Tokens were processed on GitHub secret variable earlier, so you don't have to modify them.
  2. You can initiate the process by either git push and allowing it to execute automatically, or you have the option to manually activate it for an immediate outcome using workflow_dispatch event.

Action Parameters 🪧

Input Description Default Value Required
Accesstoken Tstory Access token O
BlogName Name of the Tstroy Blog O
GithubToken Secret GITHUB_TOKEN O
visibility Visibility of the Blog Post 3 X
category Category ID 0 X
acceptComment Allow comments to be written to post 1 X

Note: visibility, category, and acceptComment inputs are currently only available as default values and will be updated later

Click here to learn more about these inputs

Technical Flow 🌊

TechFlow

Contributors 👨

Jinyoung Lee Hyoje Sung
Jinyoung Lee Hyoje Sung