Skip to content

Commit

Permalink
edit deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan-Prystay committed Sep 21, 2023
1 parent 5e6f007 commit 928b506
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Build and deploy to GitHub Pages

on:
push:
branches: [main]
branches: [master]

jobs:
build-and-deploy:
Expand All @@ -21,4 +21,4 @@ jobs:
uses: JamesIves/github-pages-deploy-action@4.1.0
with:
branch: gh-pages
folder: build
folder: build
18 changes: 18 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,24 @@
"styled-components": "^6.0.8",
"web-vitals": "^2.1.4"
},
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2.3.1

- name: Install, lint, build 🔧
run: |
npm install
npm run lint:js
npm run build

- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@4.1.0
with:
branch: gh-pages
folder: build
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
Expand Down

0 comments on commit 928b506

Please sign in to comment.