Skip to content
This repository has been archived by the owner on Jun 13, 2022. It is now read-only.

Commit

Permalink
fix docs build
Browse files Browse the repository at this point in the history
  • Loading branch information
artrixdotdev committed Mar 31, 2022
1 parent 23cf0b5 commit bc27418
Showing 1 changed file with 32 additions and 30 deletions.
62 changes: 32 additions & 30 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,36 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages

name: Build docs
name: Gen Docs

on:
push:
branches:
- main
- dev
- nightly
push:
branches: [main, dev, nightly]

jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 17
registry-url: https://registry.npmjs.org/
- name: Build docs
- run: npm install
- run: npm run docs
- name: Set up Git
run: |
git config user.name "GitHub Actions Bot"
git config user.email "<>"
- name: Commit
run: |
git pull
git add .
git commit -m "Build docs"
git push
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [17.x]

steps:
- uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: Build docs
run: |
npm install
npm docs
- name: setup git config
run: |
git config user.name "GitHub Actions Bot"
git config user.email "<>"
- name: commit
run: |
git pull
git add .
git commit -m "Gen Docs"
git push

0 comments on commit bc27418

Please sign in to comment.