Skip to content

Commit

Permalink
docs: github action directory name error and add prompt (#949)
Browse files Browse the repository at this point in the history
Co-authored-by: Divyansh Singh <[email protected]>
  • Loading branch information
Layouwen and brc-dd authored Jul 8, 2022
1 parent 1daeaa1 commit 0dafee7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/guide/deploying.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Don't enable options like _Auto Minify_ for HTML code. It will remove comments f

### Using GitHub Actions

1. Create a file named `deploy.yml` inside `.github/workflow` directory of your project with the following content:
1. Create a file named `deploy.yml` inside `.github/workflows` directory of your project with the following content:

```yaml
name: Deploy
Expand Down Expand Up @@ -96,6 +96,10 @@ Don't enable options like _Auto Minify_ for HTML code. It will remove comments f
publish_dir: docs/.vitepress/dist
```
::: tip
Please replace the corresponding branch name. For example, if the branch you want to build is `master`, then you should replace `main` with `master` in the above file.
:::

2. Now commit your code and push it to the `main` branch.

3. Wait for actions to complete. Then select `gh-pages` branch as GitHub Pages source in your repository settings. Now your docs will automatically deploy each time you push.
Expand Down

0 comments on commit 0dafee7

Please sign in to comment.