Skip to content

Commit

Permalink
Merge pull request #88 from shapeshift/deploy-sandbox
Browse files Browse the repository at this point in the history
feat(sandbox): deploy app to github pages
  • Loading branch information
pastaghost authored Jul 12, 2023
2 parents c153c97 + f11e13c commit 32d2f43
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy-sandbox.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Simple workflow for deploying static content to GitHub Pages
name: Deploy static content to Pages
name: Deploy Static Content to Pages

on:
# Runs on pushes targeting the default branch
Expand Down Expand Up @@ -46,8 +46,8 @@ jobs:
restore-keys: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
- name: Yarn Install
run: yarn install --immutable
- name: Build Sandbox
run: yarn build:sandbox
- name: Build Sandbox and Packages
run: yarn build
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
Expand Down
1 change: 1 addition & 0 deletions packages/sandbox/_redirects
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/* /index.html 200
1 change: 1 addition & 0 deletions packages/sandbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"name": "sandbox",
"version": "0.1.0",
"license": "MIT",
"homepage": "https://shapeshift.github.io/metamask-snaps/",
"scripts": {
"analyze": "source-map-explorer 'build/static/js/*.js'",
"build": "rimraf ./build && react-app-rewired build",
Expand Down
6 changes: 3 additions & 3 deletions packages/sandbox/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import '@fontsource/inter'
import '@fontsource/work-sans'

import { Box, ChakraProvider, Grid, GridItem } from '@chakra-ui/react'
import { BrowserRouter } from 'react-router-dom'
import { HashRouter as Router } from 'react-router-dom'

// import { ColorModeSwitcher } from './ColorModeSwitcher'
import { Footer } from './components/Layout/Footer/Footer'
Expand All @@ -13,7 +13,7 @@ import { theme } from './theme'

export const App = () => (
<ChakraProvider theme={theme}>
<BrowserRouter>
<Router>
<Box textAlign='center' fontSize='xl'>
<Grid
minH='100vh'
Expand Down Expand Up @@ -45,6 +45,6 @@ export const App = () => (
</GridItem>
</Grid>
</Box>
</BrowserRouter>
</Router>
</ChakraProvider>
)

0 comments on commit 32d2f43

Please sign in to comment.