Skip to content

Commit fbf2dd1

Browse files
committedFeb 25, 2022
Publish GitHub pages
1 parent d2eea5e commit fbf2dd1

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed
 

‎.github/workflows/ci.yml

+11-1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ jobs:
2929
with:
3030
entrypoint: /usr/local/bin/pandoc
3131
args: '--to html5+smart -o out/html/black-book.html --section-divs --toc --standalone --template=html/template.html ${{ steps.files.outputs.input_files }}'
32+
- name: rename index
33+
run: mv out/html/black-book.html out/html/index.html
3234
- uses: actions/upload-artifact@v2
3335
with:
3436
path: out
@@ -67,6 +69,8 @@ jobs:
6769
needs: [html, ebooks]
6870

6971
steps:
72+
- uses: actions/checkout@v2
73+
7074
- uses: actions/download-artifact@v2
7175
with:
7276
path: out
@@ -75,7 +79,7 @@ jobs:
7579
run: tar -czf ../html.tar.gz .
7680
working-directory: out/artifact/html
7781

78-
- name: Release
82+
- name: Create release
7983
uses: softprops/action-gh-release@v1
8084
with:
8185
token: '${{ secrets.GITHUB_TOKEN }}'
@@ -87,3 +91,9 @@ jobs:
8791
out/artifact/black-book.epub
8892
out/artifact/black-book.mobi
8993
out/artifact/html.tar.gz
94+
95+
- name: Deploy GitHub Pages
96+
uses: JamesIves/github-pages-deploy-action@v4.2.5
97+
with:
98+
branch: gh-pages
99+
folder: out/artifact/html

0 commit comments

Comments
 (0)