diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bd12c6e..2d882df 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -2,7 +2,7 @@ name: Build and deploy to GitHub Pages on: push: - branches: [main] + branches: [master] jobs: build-and-deploy: @@ -21,4 +21,4 @@ jobs: uses: JamesIves/github-pages-deploy-action@4.1.0 with: branch: gh-pages - folder: build + folder: build \ No newline at end of file diff --git a/package.json b/package.json index ffa129f..d9c4acb 100644 --- a/package.json +++ b/package.json @@ -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",