Skip to content

Commit

Permalink
chore: Add .github/workflows/ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Oct 2, 2021
1 parent 34367e8 commit ae1666e
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: build
on:
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14

- run: mkdir -p build
- run: cp -rp example build
- run: npm i markdown-to-html-cli -g
- run: markdown-to-html --output build/index.html
- run: markdown-to-html -s shell-regex.md --output build/shell-regex.html

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
13 changes: 13 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"markdown-to-html": {
"document": {
"title": "Shell Tutorial 入门教程(Shell tutorial book)",
"meta": [
{ "description": "Shell入门教程(Shell tutorial book)" },
{ "keywords": "Shell,tutorial" }
]
},
"github-corners": "https://github.com/jaywcjlove/shell-tutorial",
"favicon": "data:image/svg+xml,<svg viewBox=%220 0 1024 1024%22 xmlns=%22http://www.w3.org/2000/svg%22><defs><style> rect {fill: #fff; } @media (prefers-color-scheme: dark) {rect {fill: #333; } } </style></defs><path d=%22M128 128h768a42.667 42.667 0 0 1 42.667 42.667v682.666A42.667 42.667 0 0 1 896 896H128a42.667 42.667 0 0 1-42.667-42.667V170.667A42.667 42.667 0 0 1 128 128z m384 512v85.333h256V640H512zM358.997 512L238.336 632.661l60.33 60.374L479.702 512 298.667 330.965l-60.331 60.374L358.997 512z%22></path></svg>"
}
}

0 comments on commit ae1666e

Please sign in to comment.