Skip to content

Commit

Permalink
check network in runners
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuyz0112 committed Dec 11, 2023
1 parent ad13c3b commit 8f6a9bd
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 31 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
@@ -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
59 changes: 30 additions & 29 deletions packages/refine/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down

0 comments on commit 8f6a9bd

Please sign in to comment.