Skip to content

Commit

Permalink
Fixed gh pages builds (MetaMask#42)
Browse files Browse the repository at this point in the history
* Fixed gh pages builds

* Add missing mm-docs-v2 prefix
  • Loading branch information
BelfordZ authored Feb 24, 2023
1 parent 65da182 commit ed56fed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Install npm dependencies
run: yarn --immutable
- name: Run build script
run: yarn build
run: DEST="/mm-docs-v2/${{ inputs.destination_dir }}" yarn build
- name: Deploy to `${{ inputs.destination_dir }}` directory of `gh-pages` branch
uses: peaceiris/actions-gh-pages@068dc23d9710f1ba62e86896f84735d869951305
with:
Expand Down
4 changes: 2 additions & 2 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ const remarkCodesandbox = require("remark-codesandbox");
const config = {
title: "MetaMask Docs",
// tagline: '',
url: "https://your-docusaurus-test-site.com",
baseUrl: "/",
url: "https://metamask.github.io/",
baseUrl: process.env.DEST || "/", // overwritten in github action for staging / latest
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",
favicon: "img/metamask-fox.svg",
Expand Down

0 comments on commit ed56fed

Please sign in to comment.