Skip to content

Commit

Permalink
add - github action for pages
Browse files Browse the repository at this point in the history
  • Loading branch information
mkkhedawat committed Dec 17, 2023
1 parent 6697571 commit 728d483
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 19 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: deploy pages

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build-and-deploy:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install
- name: Run tests
run: npm test
- name: Build
run: npm run build
- name: Deploy to GitHub Pages
if: github.event_name == 'push'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
17 changes: 0 additions & 17 deletions .travis.yml

This file was deleted.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"name": "ndecode",
"version": "0.1.0",
"version": "1.0.0",
"private": true,
"homepage": "https://mkkhedawat.github.io/ndecode-bkp",
"dependencies": {
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^13.4.0",
Expand Down
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<link
href="http://fonts.googleapis.com/css?family=Roboto:300,400,300italic,400italic,500,500italic,700,900"
href="https://fonts.googleapis.com/css?family=Roboto:300,400,300italic,400italic,500,500italic,700,900"
rel="stylesheet"
type="text/css"
/>
Expand Down

0 comments on commit 728d483

Please sign in to comment.