aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorecho <91651232+exhq@users.noreply.github.com>2022-10-19 21:08:08 +0330
committerecho <91651232+exhq@users.noreply.github.com>2022-10-19 21:08:08 +0330
commit37e1e900a6d624fdaae5ddd1fcaac4f7a6c376f2 (patch)
tree7e32def4a1fba51c922eab531e8031c70bd79307
parent052befe150697fe034e40b74ccd573fe874bb609 (diff)
downloadexhq.github.io-37e1e900a6d624fdaae5ddd1fcaac4f7a6c376f2.tar.gz
exhq.github.io-37e1e900a6d624fdaae5ddd1fcaac4f7a6c376f2.tar.bz2
exhq.github.io-37e1e900a6d624fdaae5ddd1fcaac4f7a6c376f2.zip
pain and agony sorry nea i love you uwu
-rw-r--r--.github/workflows/build.yml12
1 files changed, 12 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index e8c64d0..3670d47 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -10,11 +10,23 @@ jobs:
- uses: actions/setup-java@v1
with:
java-version: 8
+ - uses: nikeee/setup-pandoc@v1
- uses: gradle/gradle-build-action@v2
with:
arguments: build
build-root-directory: console
- run: |
+ mkdir -p dist/malds
+ echo "<ul>">>"dist/malds/index.html"
+ for i in malds/*.md; do
+ noext=$(basename "$i" .md)
+ folder="dist/malds/$noext"
+ mkdir -p "$folder"
+ pandoc "$i" -o "$folder"/index.html
+ printf '<li><a href="%s">%s</a></li>\n' "$noext" "$noext">>"dist/malds/index.html"
+ done
+
+ echo "</ul>">>"dist/malds/index.html"
mkdir dist
cp -r static/* dist
mkdir dist/beta