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 3, 2021
1 parent cee04da commit 8ef2be3
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build
on:
push:
branches:
- master

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

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

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build

0 comments on commit 8ef2be3

Please sign in to comment.