-
Notifications
You must be signed in to change notification settings - Fork 3
Add GitHub Action to deploy docs with custom build support to gh-pages #184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: yorkie <1935767+yorkie@users.noreply.github.com>
| fetch-depth: 0 | ||
|
|
||
| - name: Deploy to GitHub Pages | ||
| uses: peaceiris/actions-gh-pages@v3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this action support executing custom scripts, because later we need to build some json files into the gh-pages branch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, the action now supports executing custom scripts! I've updated the workflow to include Node.js setup, dependency installation, and a configurable build step that runs npm run build:docs if available. This allows you to build browser-compat JSON files and other artifacts before deployment. See commit 9addf3c.
yorkie
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please support executing custom scripts on each deployment, because we need to build some artifacts such as browser-compat big JSON files to the gh-pages, too.
Co-authored-by: yorkie <1935767+yorkie@users.noreply.github.com>
I've added support for executing custom scripts during deployment. The workflow now includes:
You can now add your custom build commands to the Warning Firewall rules blocked me from connecting to one or more addressesI tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
This PR adds a GitHub Action workflow that automatically deploys the project documentation to GitHub Pages with support for custom build scripts to generate artifacts during deployment.
What this does
The new workflow (
.github/workflows/deploy-docs.yml) will:mainbranchnpm run build:docs(if available)gh-pagesbranchKey Features
npm run build:docsto allow generation of browser-compat JSON files and other artifacts before deploymentforce_orphan: trueto ensure clean deployments that overwrite the gh-pages branch completelypeaceiris/actions-gh-pages@v3actionImplementation Details
npm ciGITHUB_TOKENfor authenticationThis enables automatic deployment of the project's comprehensive documentation website (including the main site, manual, API docs, and developer tools) with support for building dynamic content like browser compatibility data.
Fixes #183.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.