Skip to content

Commit

Permalink
workfloww
Browse files Browse the repository at this point in the history
  • Loading branch information
JessicaTegner committed Oct 27, 2023
1 parent f012ee8 commit f5952e1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,15 @@ jobs:
npm ci
- name: Building project
run: npm run build
run: |
cd my-react-app/
npm run build
- name: Uploading production-ready build files
uses: actions/upload-artifact@v2
with:
name: production-files
path: ./build
path: my-react-app/build

deploy:
name: Deploy
Expand All @@ -47,10 +49,10 @@ jobs:
uses: actions/download-artifact@v2
with:
name: production-files
path: ./build
path: my-react-app/build

- name: Deploying to gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
publish_dir: my-react-app/build

0 comments on commit f5952e1

Please sign in to comment.