Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinayakrevankar committed Nov 23, 2024
0 parents commit 0679cfe
Show file tree
Hide file tree
Showing 18 changed files with 315 additions and 0 deletions.
Binary file added .DS_Store
Binary file not shown.
64 changes: 64 additions & 0 deletions .github/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Deploy React site to Pages

on:
push:
pull_request:
types: [closed]
branches: ["main"]
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: false

jobs:
# Build job
build:
runs-on: ubuntu-latest
# if: |
# github.ref == 'refs/heads/main' &&
# (github.event_name == 'push' && contains(github.event.head_commit.message, 'frontend/')) ||
# (github.event_name == 'pull_request' && github.event.pull_request.merged == true)
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "lts/*"
cache: "npm"

- name: Install dependencies
run: npm install
working-directory: ./frontend

- name: Build React app
run: npm run build
working-directory: ./frontend

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./frontend/build

# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
# if: |
# github.ref == 'refs/heads/main' &&
# (github.event_name == 'push' && contains(github.event.head_commit.message, 'frontend/')) ||
# (github.event_name == 'pull_request' && github.event.pull_request.merged == true)
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
build
15 changes: 15 additions & 0 deletions asset-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"files": {
"main.css": "/colibre-hackathon/static/css/main.e6c13ad2.css",
"main.js": "/colibre-hackathon/static/js/main.64dc73a5.js",
"static/js/453.03e637d4.chunk.js": "/colibre-hackathon/static/js/453.03e637d4.chunk.js",
"index.html": "/colibre-hackathon/index.html",
"main.e6c13ad2.css.map": "/colibre-hackathon/static/css/main.e6c13ad2.css.map",
"main.64dc73a5.js.map": "/colibre-hackathon/static/js/main.64dc73a5.js.map",
"453.03e637d4.chunk.js.map": "/colibre-hackathon/static/js/453.03e637d4.chunk.js.map"
},
"entrypoints": [
"static/css/main.e6c13ad2.css",
"static/js/main.64dc73a5.js"
]
}
Binary file added favicon.ico
Binary file not shown.
23 changes: 23 additions & 0 deletions frontend/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/colibre-hackathon/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/colibre-hackathon/logo192.png"/><link rel="manifest" href="/colibre-hackathon/manifest.json"/><title>React App</title><script defer="defer" src="/colibre-hackathon/static/js/main.64dc73a5.js"></script><link href="/colibre-hackathon/static/css/main.e6c13ad2.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
Binary file added logo192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added logo512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"short_name": "React App",
"name": "Create React App Sample",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
},
{
"src": "logo192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "logo512.png",
"type": "image/png",
"sizes": "512x512"
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}
3 changes: 3 additions & 0 deletions robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# https://www.robotstxt.org/robotstxt.html
User-agent: *
Disallow:
2 changes: 2 additions & 0 deletions static/css/main.e6c13ad2.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions static/css/main.e6c13ad2.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions static/js/453.03e637d4.chunk.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions static/js/453.03e637d4.chunk.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0679cfe

Please sign in to comment.