forked from swaroopch/byte-of-python
-
Notifications
You must be signed in to change notification settings - Fork 17
45 lines (37 loc) · 1.11 KB
/
main.yml
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
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions
name: CI
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-18.04
steps:
- name: Install Calibre
run: sudo apt update && sudo apt install calibre # for `ebook-convert` command
# https://github.com/actions/setup-node
- name: Install Node.js
uses: actions/setup-node@v2-beta
with:
node-version: '14'
# https://github.com/actions/checkout
- name: Checkout
uses: actions/checkout@v2
# https://github.com/honkit/honkit
- name: Run Honkit
run: |
npm install honkit --save-dev
npx honkit build . public --log=debug
rm -fr public/english
# https://github.com/crazy-max/ghaction-github-pages
- name: Push to GitHub Pages
if: success()
uses: crazy-max/ghaction-github-pages@v2
with:
target_branch: gh-pages
build_dir: public
fqdn: python.jeongbinpark.com
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}