Merge pull request #794 from 128technology/add-i95-53862-to-6.3-rns #3781
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .github/workflows/main.yml | |
name: GitHub Pages | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: Build and Test | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: '18.x' | |
- name: Cache Node.js modules | |
uses: actions/cache@v2 | |
with: | |
# npm cache files are stored in `~/.npm` on Linux/macOS | |
path: ~/.npm | |
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.OS }}-node- | |
${{ runner.OS }}- | |
- name: Install dependencies | |
run: npm ci | |
- name: Build | |
env: | |
NODE_OPTIONS: "--max-old-space-size=4096" | |
run: npm run build | |
- name: Build Offline Bundle | |
env: | |
NODE_OPTIONS: "--max-old-space-size=4096" | |
run: npm run build:offline | |
- name: Broken Link Checker Action | |
uses: gaurav-nelson/github-action-markdown-link-check@v1 | |
with: | |
use-verbose-mode: 'yes' | |
folder-path: 'docs' | |
- name: Deploy | |
if: github.event_name != 'pull_request' | |
uses: peaceiris/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: build | |
cname: 'docs.128technology.com' | |
- name: Event | |
if: github.event_name == 'workflow_dispatch' | |
run: echo "Triggered by Workflow Action" |