Skip to content

neatnik/weblog.lol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

weblog.lol GitHub Action

This repository holds the weblog.lol GitHub Action and documentation. All other omg.lol material (including weblog.lol stuff) can be found in the omg.lol repository.

Setting up the action

  1. First, create a GitHub repo to hold your weblog content.

  2. Add the file .github/workflows/main.yml with this content in it:

on: [push]

jobs:
  weblog_import:
    runs-on: ubuntu-latest
    name: weblog.lol
    steps:
      - uses: actions/checkout@v3
        with:
          fetch-depth: 2
      - id: weblog_import
        uses: neatnik/weblog.lol@v1
        env:
          ADDRESS: your-address-here
          WEBLOG_API_KEY: ${{ secrets.WEBLOG_API_KEY }}
  1. Change the your-address-here value above to your own omg.lol address (just the address itself, e.g. foobar).

  2. In your repo settings, click Secrets, and then Actions. Click New repository secret, and add the following:

  1. Add a folder to your repo called weblog. You can store your posts here, using whatever directory structure you’d like.

  2. Optional: Add a folder to your repo called configuration. In that folder, you can store your template.html file and your configuration.txt file if you’d like to manage your template and configuration through your repo.