diff options
author | echo <91651232+exhq@users.noreply.github.com> | 2022-10-19 21:08:08 +0330 |
---|---|---|
committer | echo <91651232+exhq@users.noreply.github.com> | 2022-10-19 21:08:08 +0330 |
commit | 37e1e900a6d624fdaae5ddd1fcaac4f7a6c376f2 (patch) | |
tree | 7e32def4a1fba51c922eab531e8031c70bd79307 /.github/workflows | |
parent | 052befe150697fe034e40b74ccd573fe874bb609 (diff) | |
download | exhq.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
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/build.yml | 12 |
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 |