Disable separate building of the docs
parent
df28dfdd15
commit
f8f4d2463d
|
@ -10,48 +10,18 @@ on:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
test:
|
||||||
name: Lint package
|
name: Lint and test package
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Setup Node
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: '14'
|
node-version: '14'
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: yarn
|
run: yarn
|
||||||
- name: Lint
|
- name: Test
|
||||||
run: yarn lint
|
|
||||||
|
|
||||||
build-docs:
|
|
||||||
name: Build and test package and deploy docs
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
- name: Setup Node
|
|
||||||
uses: actions/setup-node@v2
|
|
||||||
with:
|
|
||||||
node-version: '14'
|
|
||||||
- name: Install dependencies
|
|
||||||
run: yarn
|
|
||||||
- name: Test package
|
|
||||||
run: yarn test
|
run: yarn test
|
||||||
|
|
||||||
- name: Copy built files to docs
|
|
||||||
run: cp ./dist/shareon.min.* ./docs
|
|
||||||
if: ${{ github.ref == 'refs/heads/main' }}
|
|
||||||
- name: Deploy to GitHub Pages
|
|
||||||
uses: crazy-max/ghaction-github-pages@v2
|
|
||||||
with:
|
|
||||||
keep_history: true
|
|
||||||
build_dir: docs
|
|
||||||
fqdn: shareon.js.org
|
|
||||||
jekyll: false
|
|
||||||
if: ${{ github.ref == 'refs/heads/main' }}
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
Loading…
Reference in New Issue