Skip to content

Merge pull request #1742 from tradingview/fix_doc_for_setVisibleLogic… #81

Merge pull request #1742 from tradingview/fix_doc_for_setVisibleLogic…

Merge pull request #1742 from tradingview/fix_doc_for_setVisibleLogic… #81

Workflow file for this run

name: Documentation Website Deployment
on:
push:
branches:
- master
paths:
- '.github/workflows/deploy.yml'
- 'src/**'
- 'website/**'
- 'plugin-examples/src/**'
jobs:
deploy:
runs-on: ubuntu-22.04
if: ${{ github.ref == 'refs/heads/master' }}
permissions:
contents: write
pages: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Install library dependencies
run: npm install
- name: Build library
run: npm run build:prod
- name: Install website dependencies
working-directory: ./website
run: npm install
- name: Build documentation website
working-directory: ./website
run: npm run build
- name: Install plugin example dependencies
working-directory: ./plugin-examples
run: npm install
- name: Build plugin examples website
working-directory: ./plugin-examples
run: npm run build:examples:site
- name: Build plugin examples website
working-directory: ./plugin-examples
run: npm run build:examples:site
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
if: ${{ github.ref == 'refs/heads/master' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./website/build
user_name: 'TradingView'
user_email: '[email protected]'
commit_message: '[skip ci] Deploy website on ${{ github.event.head_commit.id }}'