Skip to content

Commit

Permalink
Merge pull request #16 from FltSv/15-fix-actions-workflow
Browse files Browse the repository at this point in the history
#15 ワークフローの作業ディレクトリ修正
  • Loading branch information
FltSv authored Nov 5, 2023
2 parents e37e36d + a48c0b7 commit c9c126f
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/firebase-hosting-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ name: Deploy to Firebase Hosting on merge
jobs:
build_and_deploy:
runs-on: ubuntu-latest
defaults:
run:
working-directory: Hosting
steps:
- uses: actions/checkout@v3
- run: npm ci && npm run build
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ jobs:
build_and_preview:
if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}'
runs-on: ubuntu-latest
defaults:
run:
working-directory: Hosting
steps:
- uses: actions/checkout@v3
- run: npm ci && npm run build
Expand Down
3 changes: 0 additions & 3 deletions Hosting/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,6 @@ node_modules/
# dotenv environment variables file
.env

# API Key
/key.js

# Webpack
/public/bundle.js
/app.js
Expand Down
10 changes: 9 additions & 1 deletion Hosting/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import { initializeApp } from "firebase/app";
import { getAuth, onAuthStateChanged } from "firebase/auth";

import { firebaseConfig } from "../key"
import { changePwdVisible, loginMail, signupMail } from "./login";

// イベント
Expand All @@ -20,6 +19,15 @@ document.addEventListener('DOMContentLoaded', (event) => {


// Initialize Firebase
const firebaseConfig = {
apiKey: "AIzaSyDqf-8M_mqa1u3nF3eY3i0eEzhZi4Wow34",
authDomain: "gallery-found.firebaseapp.com",
projectId: "gallery-found",
storageBucket: "gallery-found.appspot.com",
messagingSenderId: "985501114281",
appId: "1:985501114281:web:0e6ad563fee57fb8826eb8"
};

const app = initializeApp(firebaseConfig);
const auth = getAuth(app);

Expand Down

0 comments on commit c9c126f

Please sign in to comment.