diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml deleted file mode 100644 index 2b5e6cc..0000000 --- a/.github/workflows/deploy.yml +++ /dev/null @@ -1,45 +0,0 @@ -name: Build and Deploy -on: - push: - branches: - - master - -jobs: - build: - name: Build - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 24 - cache: 'npm' - - name: Install Dependencies - run: npm ci - - name: Build - run: npm run generate - - name: Archive Production Artifact - uses: actions/upload-artifact@v4 - with: - name: dist - path: dist - deploy: - name: Deploy - needs: build - runs-on: ubuntu-latest - steps: - - name: Checkout Repo - uses: actions/checkout@v4 - - name: Download Artifact - uses: actions/download-artifact@v4 - with: - name: dist - path: dist - - name: Setup Node - uses: actions/setup-node@v4 - with: - node-version: 24 - - name: Deploy to Firebase - run: npx firebase-tools deploy --only hosting --project ${{ secrets.PROJECT_ID }} --message "${{ github.event.head_commit.message }}" - env: - FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/firebase-hosting-merge.yml b/.github/workflows/firebase-hosting-merge.yml new file mode 100644 index 0000000..29d7598 --- /dev/null +++ b/.github/workflows/firebase-hosting-merge.yml @@ -0,0 +1,20 @@ +# This file was auto-generated by the Firebase CLI +# https://github.com/firebase/firebase-tools + +name: Deploy to Firebase Hosting on merge +on: + push: + branches: + - master +jobs: + build_and_deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - run: npm ci && npm run generate + - uses: FirebaseExtended/action-hosting-deploy@v0 + with: + repoToken: ${{ secrets.GITHUB_TOKEN }} + firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT }} + channelId: live + projectId: ${{ secrets.PROJECT_ID }} diff --git a/.github/workflows/firebase-hosting-pull-request.yml b/.github/workflows/firebase-hosting-pull-request.yml new file mode 100644 index 0000000..3cf0cab --- /dev/null +++ b/.github/workflows/firebase-hosting-pull-request.yml @@ -0,0 +1,21 @@ +# 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 +jobs: + build_and_preview: + if: ${{ github.event.pull_request.head.repo.full_name == github.repository }} + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - run: npm ci && npm run generate + - uses: FirebaseExtended/action-hosting-deploy@v0 + with: + repoToken: ${{ secrets.GITHUB_TOKEN }} + firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT }} + projectId: ${{ secrets.PROJECT_ID }} diff --git a/.output/nitro.json b/.output/nitro.json index f7e0bdf..92a30e0 100644 --- a/.output/nitro.json +++ b/.output/nitro.json @@ -1,5 +1,5 @@ { - "date": "2026-07-27T22:41:17.983Z", + "date": "2026-07-27T22:44:07.341Z", "preset": "static", "framework": { "name": "nuxt", diff --git a/firebase.json b/firebase.json index b01824f..2c33c29 100644 --- a/firebase.json +++ b/firebase.json @@ -6,9 +6,11 @@ "**/.*", "**/node_modules/**" ], - "rewrites": [{ - "source": "**", - "destination": "/index.html" - }] + "rewrites": [ + { + "source": "**", + "destination": "/index.html" + } + ] } }