blob: 70e5e3e57894deb4f85d2fc21b8963ff6f47d77a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- 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
cat malds/extras.html >> "$folder"/index.html
printf '<li><a href="%s">%s</a></li>\n' "$noext" "$noext">>"dist/malds/index.html"
done
cat malds/extras.html >> "dist/malds/index.html"
echo "</ul>">>"dist/malds/index.html"
mkdir -p dist
cp -r static/* dist
mkdir -p dist/beta
cp -r console/build/distributions/* dist/beta
- uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
cname: exhq.gay
|