Skip to content

Commit

Permalink
docs: Enhance Docusaurus example workflow (#234)
Browse files Browse the repository at this point in the history
  • Loading branch information
peaceiris committed Apr 17, 2020
1 parent 4f693f0 commit 63cdebd
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -680,12 +680,21 @@ An example workflow for [Docusaurus](https://docusaurus.io/).
`npx @docusaurus/init@next init website classic` is useful to create a new Docusaurus project.

```yaml
# .github/workflows/deploy.yml
name: github pages
on:
push:
branches:
- master
paths:
- '.github/workflows/deploy.yml'
- 'website/**'
defaults:
run:
working-directory: website
jobs:
deploy:
Expand All @@ -711,9 +720,7 @@ jobs:
${{ runner.os }}-yarn-
- run: yarn install
working-directory: ./website
- run: yarn build
working-directory: ./website
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
Expand Down

0 comments on commit 63cdebd

Please sign in to comment.