Skip to content

Commit

Permalink
feat(ci): deploy to gh pages
Browse files Browse the repository at this point in the history
  • Loading branch information
WoodenMaiden committed Jan 10, 2024
1 parent c7a0408 commit edf0c84
Show file tree
Hide file tree
Showing 4 changed files with 186 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Build React App

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Build and Deploy React app to GitHub Pages
uses: omkartapale/react-deployment-gh-pages@v1.0.0
162 changes: 162 additions & 0 deletions package-lock.json

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

6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "website",
"version": "0.1.0",
"private": true,
"homepage": "https://timecop-sync.com",
"dependencies": {
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^13.4.0",
Expand All @@ -17,6 +18,8 @@
"web-vitals": "^2.1.4"
},
"scripts": {
"predeploy": "npm run build",
"deploy": "gh-pages -d build",
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
Expand All @@ -39,5 +42,8 @@
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"gh-pages": "^6.1.1"
}
}
1 change: 1 addition & 0 deletions public/CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
www.timecop-sync.com

0 comments on commit edf0c84

Please sign in to comment.