diff --git a/.firebaserc b/.firebaserc new file mode 100644 index 00000000..123a826f --- /dev/null +++ b/.firebaserc @@ -0,0 +1,5 @@ +{ + "projects": { + "default": "nextcommunity-eea10" + } +} diff --git a/.github/workflows/firebase-hosting-merge.yml b/.github/workflows/firebase-hosting-merge.yml new file mode 100644 index 00000000..91acb062 --- /dev/null +++ b/.github/workflows/firebase-hosting-merge.yml @@ -0,0 +1,24 @@ +# 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: + - main +permissions: + contents: read +jobs: + build_and_deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + persist-credentials: false + - run: npm ci && npm run build + - uses: FirebaseExtended/action-hosting-deploy@e2eda2e106cfa35cdbcf4ac9ddaf6c4756df2c8c # v0.10.0 + with: + repoToken: ${{ secrets.GITHUB_TOKEN }} + firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_NEXTCOMMUNITY_EEA10 }} + channelId: live + projectId: nextcommunity-eea10 diff --git a/.github/workflows/firebase-hosting-pull-request.yml b/.github/workflows/firebase-hosting-pull-request.yml new file mode 100644 index 00000000..63888fed --- /dev/null +++ b/.github/workflows/firebase-hosting-pull-request.yml @@ -0,0 +1,23 @@ +# 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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + persist-credentials: false + - run: npm ci && npm run build + - uses: FirebaseExtended/action-hosting-deploy@e2eda2e106cfa35cdbcf4ac9ddaf6c4756df2c8c # v0.10.0 + with: + repoToken: ${{ secrets.GITHUB_TOKEN }} + firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_NEXTCOMMUNITY_EEA10 }} + projectId: nextcommunity-eea10 diff --git a/firebase.json b/firebase.json new file mode 100644 index 00000000..4bbda62d --- /dev/null +++ b/firebase.json @@ -0,0 +1,6 @@ +{ + "hosting": { + "public": "_site", + "ignore": ["firebase.json", "**/.*", "**/node_modules/**"] + } +} diff --git a/pyproject.toml b/pyproject.toml index e6f763d5..214063a4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,5 +12,5 @@ requires-python = ">=3.13" [dependency-groups] dev = [ - "prek>=0.4.0" + "prek>=0.4.1" ] diff --git a/uv.lock b/uv.lock index df0d2d26..ca7f4fe4 100644 --- a/uv.lock +++ b/uv.lock @@ -15,7 +15,7 @@ dev = [ [package.metadata] [package.metadata.requires-dev] -dev = [{ name = "prek", specifier = ">=0.4.0" }] +dev = [{ name = "prek", specifier = ">=0.4.1" }] [[package]] name = "prek"