Commit 9b96936
Changed files (1)
.github
workflows
.github/workflows/build-html.yaml
@@ -0,0 +1,43 @@
+---
+name: Build HTML
+
+on:
+ workflow_dispatch:
+ push:
+ branches:
+ - main
+
+concurrency:
+ group: ${{ github.workflow }}-${{ github.ref }}
+ cancel-in-progress: true
+
+permissions: write-all
+
+jobs:
+ build:
+ runs-on: ubuntu-slim
+ steps:
+ - name: Checkout
+ uses: actions/checkout@main
+ with:
+ fetch-depth: 0
+
+ - name: Install gitmal
+ shell: bash
+ run: |
+ mkdir -p ~/.local/bin
+ curl -fsSL -o "$HOME/.local/bin/gitmal" "https://github.com/antonmedv/gitmal/releases/download/v1.0.2/gitmal_linux_amd64"
+ chmod +x "$HOME/.local/bin/gitmal"
+
+ - name: Build Static HTML
+ shell: bash
+ run: |
+ ~/.local/bin/gitmal --branches main --minify --theme tokyonight-night --name bennybot --output output
+
+ - name: Push HTML
+ uses: JamesIves/github-pages-deploy-action@v4
+ with:
+ branch: gh-pages
+ folder: ./output
+ single-commit: true
+ commit-message: ${{ github.event.head_commit.message }}