An open API service indexing awesome lists of open source software.

https://github.com/runmaxde/startpage-action

A lightweight Startpage generator powered by YAML & handlebars
https://github.com/runmaxde/startpage-action

bookmarks-manager github-actions startpage-generator

Last synced: 3 months ago
JSON representation

A lightweight Startpage generator powered by YAML & handlebars

Awesome Lists containing this project

README

        


Startpage Action 🏠



Github Action to generate a Webpage from your Bookmarks powered by YAML & Handlebars












## Action 🎬

``` yaml
# ~/.github/workflows/buil.yml

on: [push]

jobs:
build:
runs-on: ubuntu-latest
name: Build the page
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2

- name: Build
uses: runmaxde/[email protected]
with:
templateFile: "./template/index.hbs"
inputFile: "./input.yml"
outputPath: "./page/"

- name: Commit
run: |
git config --local user.email "$(git log --format='%ae' HEAD^!)"
git config --local user.name "$(git log --format='%an' HEAD^!)"
git add .
git commit -m "👷 🔨"
git push origin HEAD:${GITHUB_REF}
shell: bash
```

## Example

``` handlebars
{{!-- ~/template/index.hbs --}}




Startpage



{{#groupList}}


{{emoji}}

{{groupTitle}}



{{#linkList}}

{{/linkList}}


{{/groupList}}

```

``` yaml
# ~/input.yml

Group 1:
_@icon: 🚀
github: https://github.com/
google: https://google.com/
```