-
Notifications
You must be signed in to change notification settings - Fork 260
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #181 from marvelai-org/develop
Cleanup & Maintenance
- Loading branch information
Showing
37 changed files
with
684 additions
and
320 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
node_modules | ||
out | ||
.next | ||
.next | ||
**/docs/** |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,56 @@ | ||
# This file was auto-generated by the Firebase CLI | ||
# https://github.com/firebase/firebase-tools | ||
|
||
name: Deploy to Firebase Hosting on PR | ||
on: pull_request | ||
permissions: | ||
checks: write | ||
contents: read | ||
pull-requests: write | ||
name: Deploy to Firebase on Merge | ||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build_and_preview: | ||
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }} | ||
build_and_deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: next build | ||
- uses: FirebaseExtended/action-hosting-deploy@v0 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '18' | ||
|
||
# Install dependencies for both frontend and functions | ||
- name: Install Dependencies | ||
run: | | ||
npm ci | ||
cd functions && npm ci | ||
# Create .env files for both frontend and functions | ||
- name: Create environment files | ||
run: | | ||
# Frontend .env | ||
echo "NEXT_PUBLIC_FIREBASE_CLIENT_API_KEY=${{ secrets.NEXT_PUBLIC_FIREBASE_CLIENT_API_KEY }}" >> .env | ||
echo "NEXT_PUBLIC_FIREBASE_CLIENT_AUTH_DOMAIN=${{ secrets.NEXT_PUBLIC_FIREBASE_CLIENT_AUTH_DOMAIN }}" >> .env | ||
echo "NEXT_PUBLIC_FIREBASE_CLIENT_PROJECT_ID=${{ secrets.NEXT_PUBLIC_FIREBASE_CLIENT_PROJECT_ID }}" >> .env | ||
echo "NEXT_PUBLIC_FIREBASE_CLIENT_STORAGE_BUCKET=${{ secrets.NEXT_PUBLIC_FIREBASE_CLIENT_STORAGE_BUCKET }}" >> .env | ||
echo "NEXT_PUBLIC_FIREBASE_CLIENT_MESSAGING_SENDER_ID=${{ secrets.NEXT_PUBLIC_FIREBASE_CLIENT_MESSAGING_SENDER_ID }}" >> .env | ||
echo "NEXT_PUBLIC_FIREBASE_CLIENT_APP_ID=${{ secrets.NEXT_PUBLIC_FIREBASE_CLIENT_APP_ID }}" >> .env | ||
echo "NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID=${{ secrets.NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID }}" >> .env | ||
echo "NEXT_PUBLIC_MARVEL_ENDPOINT=${{ secrets.NEXT_PUBLIC_MARVEL_ENDPOINT }}" >> .env | ||
# Functions .env | ||
cd functions | ||
echo "MARVEL_API_KEY=${{ secrets.MARVEL_API_KEY }}" >> .env | ||
echo "MARVEL_ENDPOINT=${{ secrets.MARVEL_ENDPOINT }}" >> .env | ||
# Build frontend | ||
- name: Build Frontend | ||
run: npm run build | ||
|
||
# Deploy to Firebase | ||
- name: Deploy to Firebase | ||
uses: FirebaseExtended/action-hosting-deploy@v0 | ||
with: | ||
repoToken: ${{ secrets.GITHUB_TOKEN }} | ||
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_KAI_AI_F63C8 }} | ||
projectId: kai-ai-f63c8 | ||
projectId: kai-ai-f63c8 | ||
channelId: live |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,4 +21,4 @@ const styles = { | |
}, | ||
}; | ||
|
||
export default styles; | ||
export default styles; |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,4 +69,4 @@ const styles = { | |
}), | ||
}; | ||
|
||
export default styles; | ||
export default styles; |
Oops, something went wrong.