mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-19 22:40:48 -07:00
chore: build docs on master push
This commit is contained in:
@@ -0,0 +1,27 @@
|
|||||||
|
name: Docs
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
jobs:
|
||||||
|
docs:
|
||||||
|
name: Docs
|
||||||
|
runs-on: ubuntu-18.04
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- name: Setup Node.js
|
||||||
|
uses: actions/setup-node@v2
|
||||||
|
with:
|
||||||
|
node-version: '14'
|
||||||
|
- name: Build
|
||||||
|
run: |
|
||||||
|
npm ci
|
||||||
|
npm run build:docs
|
||||||
|
- name: Publish
|
||||||
|
uses: JamesIves/[email protected]
|
||||||
|
with:
|
||||||
|
branch: gh-pages
|
||||||
|
folder: docs/public
|
||||||
@@ -16,7 +16,7 @@ jobs:
|
|||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
npm ci
|
npm ci
|
||||||
npm run build
|
npm run build:dist
|
||||||
- name: Test
|
- name: Test
|
||||||
run: |
|
run: |
|
||||||
npm run lint
|
npm run lint
|
||||||
@@ -30,8 +30,3 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
run: npx semantic-release
|
run: npx semantic-release
|
||||||
- name: Publish Docs
|
|
||||||
uses: JamesIves/[email protected]
|
|
||||||
with:
|
|
||||||
branch: gh-pages
|
|
||||||
folder: docs/public
|
|
||||||
Reference in New Issue
Block a user