mirror of
https://github.com/peaceiris/actions-gh-pages.git
synced 2025-07-15 22:56:54 +08:00
docs: Update Docusaurus workflow example (#229)
* Updating Docusaurus config to make it work * docs: Fix publish_dir There were some issues, it was impossible to get it working just with a simple copy/paste * Test repo: https://github.com/peaceiris/test-docusaurus * Reference: https://docusaurus.io/docs/en/installation Co-authored-by: peaceiris <30958501+peaceiris@users.noreply.github.com>
This commit is contained in:
parent
9f90987bad
commit
fb15409be9
@ -678,7 +678,7 @@ jobs:
|
|||||||
|
|
||||||
An example workflow for [Docusaurus](https://docusaurus.io/).
|
An example workflow for [Docusaurus](https://docusaurus.io/).
|
||||||
|
|
||||||
`npx @docusaurus/init@next init` is useful to create a new Docusaurus project.
|
`npx @docusaurus/init@next init website classic` is useful to create a new Docusaurus project.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
name: github pages
|
name: github pages
|
||||||
@ -712,13 +712,15 @@ jobs:
|
|||||||
${{ runner.os }}-yarn-
|
${{ runner.os }}-yarn-
|
||||||
|
|
||||||
- run: yarn install
|
- run: yarn install
|
||||||
|
working-directory: ./website
|
||||||
- run: yarn build
|
- run: yarn build
|
||||||
|
working-directory: ./website
|
||||||
|
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
uses: peaceiris/actions-gh-pages@v3
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
publish_dir: ./build
|
publish_dir: ./website/build
|
||||||
```
|
```
|
||||||
|
|
||||||
### ⭐️ Static Site Generators with Python
|
### ⭐️ Static Site Generators with Python
|
||||||
|
Loading…
x
Reference in New Issue
Block a user