Skip to content

Commit

Permalink
Add preview-docs workflow (#62)
Browse files Browse the repository at this point in the history
* Add preview docs workflow

* Use current default branch name

* prettier

* Use updated pattern

* Fix name of PR target branch

* Use plain upload-artifact action

* Change name
  • Loading branch information
jcbhmr authored Jun 6, 2023
1 parent 162c5f6 commit 5dc6959
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/preview-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Preview docs
on:
push:
branches: production
paths:
- docs/**
- '*rc'
- '*config*'
- '*.json'
- '*.lock'
- .github/workflows/preview-docs.yml
pull_request:
branches: production
paths:
- docs/**
- '*rc'
- '*config*'
- '*.json'
- '*.lock'
- .github/workflows/preview-docs.yml
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
preview-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: npm
- run: npm ci
- run: npm run build:docs
- uses: actions/upload-artifact@v3
with:
name: preview-docs
path: docs/dist

0 comments on commit 5dc6959

Please sign in to comment.