blob: 3670d479c9c68af4e8a047ecd920d1e2e378e3a7 (
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
|
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
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
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
|