Skip to content

Commit

Permalink
GitHub Action to build and deploy
Browse files Browse the repository at this point in the history
GitHub Action to build and deploy
  • Loading branch information
LamboCreeper committed Apr 30, 2024
1 parent 9084f5d commit e5ad0d7
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: CI
on:
push:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: |
cd hosting
echo "REACT_APP_ENV=production" >> .env
npm ci
npm run build
deploy:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
needs:
- build
steps:
- uses: actions/checkout@v3
- run: npx firebase-tools deploy --token $FIREBASE_TOKEN
2 changes: 1 addition & 1 deletion hosting/src/components/pages/HomePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function HomePage() {

setRepositories(repos);
})();
}, [user]);
}, [user, request]);

return (
<main>
Expand Down

0 comments on commit e5ad0d7

Please sign in to comment.