bump version to v4.2.3 #84
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: 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 }}' |