Skip to content

Commit 07161cc

Browse files
committed
Merge branch 'mdbook'
2 parents a6c88f2 + b2a0674 commit 07161cc

File tree

92 files changed

+2894
-4741
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+2894
-4741
lines changed

.github/dependabot.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
labels:
8+
- "CI/CD"
9+
commit-message:
10+
prefix: ci

.github/workflows/build-deploy.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Build (and deploy)
2+
3+
on:
4+
- push
5+
- pull_request
6+
- workflow_dispatch
7+
8+
defaults:
9+
runs-on: ubuntu-20.04
10+
11+
jobs:
12+
build:
13+
name: Build
14+
steps:
15+
- uses: actions/checkout@v2
16+
17+
- name: Setup mdBook
18+
uses: peaceiris/actions-mdbook@v1
19+
with:
20+
mdbook-version: '0.4.6'
21+
# mdbook-version: 'latest'
22+
23+
- run: mdbook build
24+
25+
- name: Create artifact
26+
uses: actions/upload-artifact@v2
27+
with:
28+
name: book
29+
path: book
30+
31+
deploy:
32+
name: Deploy
33+
needs: build
34+
if: github.ref == 'refs/heads/master'
35+
steps:
36+
- name: Fetch build artifact
37+
uses: actions/download-artifact@v2
38+
with:
39+
name: book
40+
41+
- name: Deploy to gh-pages
42+
uses: peaceiris/actions-gh-pages@v3
43+
with:
44+
github_token: ${{ secrets.GITHUB_TOKEN }}
45+
publish_dir: book
46+
cname: guide.encode.moe

.gitignore

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,2 @@
1-
# temporary dev folders
2-
node_modules/
3-
4-
# build artifacts
5-
_book/
6-
id_deploy*
1+
book
2+
*.html

.travis.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.

.travis/deploy.sh

Lines changed: 0 additions & 24 deletions
This file was deleted.

.travis/id_deploy.enc

-3.17 KB
Binary file not shown.

GLOSSARY.md

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)