Skip to content

Commit

Permalink
Add deploy steps
Browse files Browse the repository at this point in the history
  • Loading branch information
ducknoir authored Apr 5, 2024
1 parent 388569f commit 292d830
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: React-CI

on: [push, pull_request]
on:
push:
branches:
- master

jobs:
build:
Expand All @@ -16,3 +19,13 @@ jobs:
run: npm install
- name: Run Tests
run: npm test
# Deployment step
- name: Build React app
run: npm run build
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages # Branch to deploy to
folder: build # Folder to deploy
if: github.ref == 'refs/heads/master' # Conditional deployment

0 comments on commit 292d830

Please sign in to comment.