fix: build error #224
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
# --------------------------------------------------------------------------------------------- | |
# Copyright (c) Infiniscene, Inc. All rights reserved. | |
# Licensed under the MIT License. See License.txt in the project root for license information. | |
# --------------------------------------------------------------------------------------------- | |
name: Publish Docs | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build-and-deploy: | |
concurrency: ci-${{ github.ref }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v2 | |
- name: Install and Build 🔧 | |
run: | | |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> ~/.npmrc | |
npm ci | |
npm run build | |
npm run publish-docs | |
- name: Deploy 🚀 | |
uses: JamesIves/github-pages-deploy-action@v4.2.2 | |
with: | |
branch: gh-pages | |
folder: docs/ |