Skip to content

Commit

Permalink
Added automatic deployment.
Browse files Browse the repository at this point in the history
  • Loading branch information
originalnicodr committed Jul 31, 2023
1 parent fa7b3f5 commit f8a35fd
Show file tree
Hide file tree
Showing 3 changed files with 162 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Deploy website

on:
push:
branches: [ main ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Install Node.js
uses: actions/setup-node@v1
with:
node-version: 15.x
- run: npm install
- run: npm run build
- uses: peaceiris/actions-gh-pages@v3.7.3
with:
publish_dir: build
github_token: ${{ secrets.GITHUB_TOKEN }}

133 changes: 133 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: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
"eject": "react-scripts eject",
"deploy": "gh-pages -d build"
},
"eslintConfig": {
"extends": [
Expand All @@ -38,5 +39,8 @@
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"gh-pages": "^5.0.0"
}
}

0 comments on commit f8a35fd

Please sign in to comment.