# ~/.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/startpage-action@v0.2
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
# ~/input.yml
Group 1:
_@icon: 🚀
github: https://github.com/
google: https://google.com/