Skip to content

Commit

Permalink
ci: github page (wip)
Browse files Browse the repository at this point in the history
  • Loading branch information
TendTo committed Nov 5, 2023
1 parent d88d59e commit 80dd7ba
Show file tree
Hide file tree
Showing 5 changed files with 77 additions and 1 deletion.
54 changes: 54 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Deploy site to GitHub pages

on:
push:
branches: ["main"]

workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true

jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: "18.x"

- name: Install dependencies
run: npm ci
working-directory: frontend

- name: Build
run: npm run build
working-directory: frontend

- name: Setup Pages
uses: actions/configure-pages@v2

- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: "frontend/build"

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ __pycache__/
.env*
*.csv
*.parquet
build/
Empty file removed frontend/index.html
Empty file.
3 changes: 2 additions & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"react-scripts": "5.0.1",
"three": "0.153.0",
"uuid-by-string": "4.0.0",
"wouter": "2.11.0"
"wouter": "2.11.0",
"@babel/plugin-proposal-private-property-in-object": "^7.16.7"
},
"devDependencies": {},
"scripts": {
Expand Down
20 changes: 20 additions & 0 deletions frontend/public/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "immersive-movies",
"short_name": "immersive-movies",
"icons": [
{
"src": "logo192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "logo512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}

0 comments on commit 80dd7ba

Please sign in to comment.