Skip to content

Commit

Permalink
ci(docs): make cd deploy docs
Browse files Browse the repository at this point in the history
  • Loading branch information
louisgrasset committed Oct 21, 2023
1 parent fda2b8c commit e475c39
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,18 +75,16 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Build documentations
- name: Build docusaurus
run: npm run build

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
- name: Setup Pages
uses: actions/configure-pages@v3

- name: Upload docs build
uses: actions/upload-pages-artifact@v2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
# The following lines assign commit authorship to the official
# GH-Actions bot for deploys to `gh-pages` branch:
# https://github.com/actions/checkout/issues/13#issuecomment-724415212
# The GH actions bot is used by default if you didn't specify the two fields.
# You can swap them out with your own user credentials.
user_name: github-actions[bot]
user_email: 41898282+github-actions[bot]@users.noreply.github.com
path: docs/build

- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v2

0 comments on commit e475c39

Please sign in to comment.