Skip to content

Commit

Permalink
chore(examples): migrate Material UI example to Vercel (#6992)
Browse files Browse the repository at this point in the history
  • Loading branch information
hassankhan authored Aug 7, 2023
1 parent 4b126d3 commit c15f8df
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 29 deletions.
24 changes: 0 additions & 24 deletions .github/workflows/examples-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -381,30 +381,6 @@ jobs:
CUBE_CLOUD_DEPLOY_AUTH: ${{ secrets.CUBE_CLOUD_DEPLOY_AUTH_MAPBOX }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}

material-ui-dashboard:
runs-on: ubuntu-20.04
timeout-minutes: 30

steps:
- uses: actions/checkout@v3

- uses: pheel/path-watcher-action@v1
id: modified
with:
paths: '.github/workflows/examples-publish.yml,.github/actions/deploy-example.sh,examples/material-ui-dashboard/*,examples/material-ui-dashboard/**'

- if: steps.modified.outputs.modified
uses: actions/setup-node@v3
with:
node-version: 14.x

- if: steps.modified.outputs.modified
run: .github/actions/deploy-example.sh
env:
EXAMPLE_SLUG: material-ui-dashboard
CUBE_CLOUD_DEPLOY_AUTH: ${{ secrets.CUBE_CLOUD_DEPLOY_AUTH_MATERIAL_UI_DASHBOARD }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}

react-dashboard:
runs-on: ubuntu-20.04
timeout-minutes: 30
Expand Down

This file was deleted.

2 changes: 0 additions & 2 deletions examples/material-ui-dashboard/dashboard-app/netlify.toml

This file was deleted.

17 changes: 17 additions & 0 deletions examples/material-ui-dashboard/dashboard-app/vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"headers": [
{
"source": "/(.*)",
"headers": [
{
"key": "Strict-Transport-Security",
"value": "max-age=31536000; includeSubDomains;"
},
{
"key": "Content-Security-Policy",
"value": "connect-src https://identity.cube.dev track.cube.dev graphql.contentful.com https://arab-aleppo.gcp-us-central1.cubecloudapp.dev; font-src 'self' fonts.gstatic.com cdn.jsdelivr.net static.cube.dev; style-src 'self' fonts.googleapis.com cdn.jsdelivr.net 'unsafe-inline'; script-src 'self' https://www.datadoghq-browser-agent.com/datadog-logs-v4.js 'sha256-2YCIRhchA1ILLFwpLejrdv+U0eFGjweSDe+Kv9OHpfU=' 'sha256-NNRNlUvekpg7yDPcWeHFgr2SbeZBup4y3/n9L6w472A='; img-src 'self' static.cube.dev data:; object-src 'none'"
}
]
}
]
}

1 comment on commit c15f8df

@vercel
Copy link

@vercel vercel bot commented on c15f8df Aug 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

examples-react-material-ui – ./examples/material-ui-dashboard/dashboard-app

examples-react-material-ui-git-master-cube-dev.vercel.app
material-ui-dashboard-demo.cube.dev
examples-react-material-ui-cube-dev.vercel.app
examples-react-material-ui.vercel.app

Please sign in to comment.