Merge pull request #1851 from telerik/add-ci-cd #1
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
# Builds and publishes examples to GH pages | |
name: CD | |
on: | |
push: | |
branches: | |
- master | |
defaults: | |
run: | |
working-directory: ./live | |
env: | |
NODE_OPTIONS: --max_old_space_size=6144 | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Use NodeJS v18 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '18' | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Build | |
run: ./bin/build-gh-pages | |
env: | |
KENDO_UI_LICENSE: ${{ secrets.KENDO_UI_LICENSE }} | |
- name: Deploy to GH Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ github.token }} | |
publish_dir: ./live/dist | |
user_name: 'kendo-bot' | |
user_email: '[email protected]' |