Skip to content

Commit 5c89fd4

Browse files
authored
Merge pull request #1 from RFGRONA/alpha-gabe
CF, github actions
2 parents a53097e + cc4c185 commit 5c89fd4

File tree

4 files changed

+234
-1
lines changed

4 files changed

+234
-1
lines changed

.github/workflows/deploy.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build-and-deploy:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Check out the code
14+
uses: actions/checkout@v3
15+
16+
- name: Set up Node.js
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: '18.x'
20+
21+
- name: Install dependencies
22+
run: npm install
23+
24+
- name: Build the project
25+
run: npm run build
26+
27+
- name: Deploy to GitHub Pages
28+
uses: peaceiris/actions-gh-pages@v3
29+
with:
30+
github_token: ${{ secrets.TOKEN }}
31+
publish_dir: ./build
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Check Pull Request
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- beta
7+
8+
jobs:
9+
check-and-merge:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Check out the code
14+
uses: actions/checkout@v3
15+
16+
- name: Set up Node.js
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: '18.x'
20+
21+
- name: Install dependencies
22+
run: npm install
23+
24+
- name: Build the project
25+
run: npm run build
26+
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

package-lock.json

Lines changed: 167 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22
"name": "biokudi-frontend",
33
"version": "0.1.0",
44
"private": true,
5+
"homepage": "https://rfgrona.github.io/biokudi-frontend/",
56
"dependencies": {
67
"@testing-library/jest-dom": "^5.17.0",
78
"@testing-library/react": "^13.4.0",
89
"@testing-library/user-event": "^13.5.0",
10+
"biokudi-frontend": "file:",
911
"react": "^18.3.1",
1012
"react-dom": "^18.3.1",
1113
"react-scripts": "5.0.1",
@@ -15,7 +17,9 @@
1517
"start": "react-scripts start",
1618
"build": "react-scripts build",
1719
"test": "react-scripts test",
18-
"eject": "react-scripts eject"
20+
"eject": "react-scripts eject",
21+
"predeploy": "npm run build",
22+
"deploy": "gh-pages -d build"
1923
},
2024
"eslintConfig": {
2125
"extends": [
@@ -34,5 +38,8 @@
3438
"last 1 firefox version",
3539
"last 1 safari version"
3640
]
41+
},
42+
"devDependencies": {
43+
"gh-pages": "^6.1.1"
3744
}
3845
}

0 commit comments

Comments
 (0)