Skip to content

Deploy

Deploy #59

Workflow file for this run

name: Deploy
on:
workflow_dispatch:
push:
branches:
- preyskurantov/re-design
jobs:
deploy:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Get sources
uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Restore npm cache
uses: actions/cache@v3
with:
path: ./node_modules
key: ${{ runner.os }}-node-modules
- name: Run npm install
run: npm install --no-package-lock --no-audit --no-fund
- name: Authenticate to GitHub Package
run: echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> .npmrc
- name: Download devextreme-internal
run: |
DEVEXTREME_INTERNAL_VERSION=$(npm pkg get dependencies.devextreme | tr -d '"')
npm pack @devexpress/devextreme-internal@$DEVEXTREME_INTERNAL_VERSION --registry https://npm.pkg.github.com
- name: Unpack devextreme-internal
run: |
DEVEXTREME_FILE_NAME=$(find . -name DevExpress-devextreme-internal-*.tgz)
mkdir devextreme-internal-package
cd ./devextreme-internal-package
tar -xvzf ../$DEVEXTREME_FILE_NAME
- name: Copy devextreme-internal
run: |
rm -rf ./node_modules/devextreme/*
mv ./devextreme-internal-package/package/* ./node_modules/devextreme
rm -rf ./devextreme-internal-package
- name: Build
run: npm run build
- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: build-artifacts
path: dist/devextreme-themebuilder-app
# - name: Deploy
# uses: JamesIves/[email protected]
# with:
# GITHUB_TOKEN: ${{ secrets.DEPLOY_SECRET }}
# BRANCH: gh-pages
# FOLDER: dist/devextreme-themebuilder-app
# CLEAN: true