Skip to content

Commit

Permalink
chore(docs): add proper directory for docs deploy (#1108)
Browse files Browse the repository at this point in the history
* add proper directory

* add workflow dispatch
  • Loading branch information
jwlee64 authored Jan 22, 2024
1 parent 364f838 commit 4b59778
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Deploy to GitHub Pages

on:
workflow_dispatch:
push:
branches:
- master
Expand All @@ -23,8 +24,10 @@ jobs:

- name: Install dependencies
run: yarn install --frozen-lockfile
working-directory: ./docs
- name: Build website
run: yarn build
working-directory: ./docs

# Popular action to deploy to GitHub Pages:
# Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus
Expand All @@ -33,7 +36,7 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
# Build output to publish to the `gh-pages` branch:
publish_dir: ./build
publish_dir: ./docs/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
Expand Down

0 comments on commit 4b59778

Please sign in to comment.