Merge pull request #164 from FlowFuse/dependabot/github_actions/peace… #121
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
name: Build Documentation | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
jobs: | |
build_deploy: | |
if: ${{ github.repository == 'flowforge/forge-ui-components' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out components repository | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '16' | |
- run: npm ci | |
- run: npm run lint | |
- run: npm run build | |
- run: npm run build-docs | |
- name: Deploy | |
uses: peaceiris/[email protected] | |
with: | |
publish_dir: dist/docs | |
publish_branch: gh-pages | |
github_token: ${{ secrets.GITHUB_TOKEN }} |