diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 75f2bd04..b23bbed1 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -1,9 +1,28 @@ -name: Actions Runner Controller Demo +name: Deploy Preview on: push: jobs: Explore-GitHub-Actions: - runs-on: arc-runner-set + runs-on: arc-runner-set-webzard steps: - run: echo "🎉 This job uses runner scale set runners!" + deploy_site: + runs-on: arc-runner-set-webzard + name: Deploy the site + steps: + - name: Executing remote SSH commands + uses: appleboy/ssh-action@master + with: + host: 10.255.4.115 + username: smartx + password: ${{ secrets.HOST_PASSWORD }} + script: | + sudo su + nvm use 16 + cd /home/smartx/dovetail-v2 + git fetch + git checkout origin/yz-ai + yarn build + pm2 delete preview + pm2 start npm --name "preview" -- run preview diff --git a/packages/refine/vite.config.ts b/packages/refine/vite.config.ts index 3aed2c86..30f5cad5 100644 --- a/packages/refine/vite.config.ts +++ b/packages/refine/vite.config.ts @@ -19,35 +19,36 @@ export default defineConfig({ }, }, }, - build: { - minify: false, - lib: { - entry: path.resolve(__dirname, 'src/index.ts'), - name: 'dovetail', - }, - rollupOptions: { - external: [ - '@cloudtower/eagle', - '@cloudtower/icons-react', - '@refinedev/core', - '@refinedev/inferencer', - 'antd', - 'i18next', - 'ky', - 'lodash-es', - 'mitt', - 'qs', - 'react', - 'react-dom', - 'react-router-dom', - 'sunflower-antd', - 'monaco-editor', - 'monaco-yaml', - 'js-yaml', - 'k8s-api-provider', - ], - }, - }, + base: './', + // build: { + // minify: false, + // lib: { + // entry: path.resolve(__dirname, 'src/index.ts'), + // name: 'dovetail', + // }, + // rollupOptions: { + // external: [ + // '@cloudtower/eagle', + // '@cloudtower/icons-react', + // '@refinedev/core', + // '@refinedev/inferencer', + // 'antd', + // 'i18next', + // 'ky', + // 'lodash-es', + // 'mitt', + // 'qs', + // 'react', + // 'react-dom', + // 'react-router-dom', + // 'sunflower-antd', + // 'monaco-editor', + // 'monaco-yaml', + // 'js-yaml', + // 'k8s-api-provider', + // ], + // }, + // }, resolve: { alias: { src: path.resolve(__dirname, 'src'),