Skip to content

Commit

Permalink
Merge pull request #1 from Jaspero/redesignV2
Browse files Browse the repository at this point in the history
Redesign v2
  • Loading branch information
flauc authored Nov 5, 2024
2 parents 084b0ec + 6be45bc commit 3206cd4
Show file tree
Hide file tree
Showing 908 changed files with 63,202 additions and 55,474 deletions.
3 changes: 3 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,8 @@
]
}
}
},
"projects": {
"default": "genos-ec52a"
}
}
3 changes: 0 additions & 3 deletions .github/FUNDING.yml

This file was deleted.

42 changes: 0 additions & 42 deletions .github/utils/function-changes.js

This file was deleted.

27 changes: 0 additions & 27 deletions .github/workflows/cms.workflow.yml

This file was deleted.

33 changes: 33 additions & 0 deletions .github/workflows/cms.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Prod | Deploy CMS
on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'cms/**/*'
- 'shared/**/*'
env:
PROJECT: genos-ec52a
SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }}
TARGET: cms
jobs:
build_and_deploy:
runs-on: [self-hosted]
steps:
- name: Use Node.js 20.9.0
uses: actions/setup-node@v1
with:
node-version: 20.9.0
- name: Checkout Repo
uses: actions/checkout@v3
- name: Build
run: npm ci --prefix cms --legacy-peer-deps && npm run build:prod --prefix cms
- name: Deploy
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: ${{ env.SERVICE_ACCOUNT }}
channelId: live
projectId: ${{ env.PROJECT }}
target: ${{ env.TARGET }}
29 changes: 29 additions & 0 deletions .github/workflows/cors.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Prod | Deploy CORS
on:
workflow_dispatch:

env:
project: 'genos-ec52a'
bucket: 'gs://genos-ec52a.appspot.com'

jobs:
deploy:
timeout-minutes: 5
name: Deploy
runs-on: [self-hosted]
steps:
- name: Checkout Repo
uses: actions/checkout@v2

- name: Setup - gcloud
uses: google-github-actions/auth@v1
with:
credentials_json: '${{ secrets.SERVICE_ACCOUNT }}'

- name: Set up Cloud SDK
uses: 'google-github-actions/setup-gcloud@v1'

- name: Deploy Rules
run: gsutil cors set firebase-cors.json $BUCKET
env:
BUCKET: '${{ env.bucket }}'
43 changes: 0 additions & 43 deletions .github/workflows/functions.workflow.yml

This file was deleted.

29 changes: 29 additions & 0 deletions .github/workflows/functions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Prod | Deploy Functions
on:
workflow_dispatch:
env:
PROJECT: genos-ec52a
SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }}
jobs:
build_and_deploy:
name: Build And Deploy
runs-on: [self-hosted]
steps:
- name: Use Node.js 20.9.0
uses: actions/setup-node@v1
with:
node-version: 20.9.0
- name: Checkout Repo
uses: actions/checkout@v3
- name: Install Dependencies
run: npm --prefix functions ci --legacy-peer-deps
- name: Build
run: |
npm --prefix functions run build
- name: Deploy to Firebase
uses: w9jds/firebase-action@master
with:
args: deploy --only functions
env:
GCP_SA_KEY: ${{ env.SERVICE_ACCOUNT }}
PROJECT_ID: ${{ env.PROJECT }}
22 changes: 0 additions & 22 deletions .github/workflows/indexes.workflow.yml

This file was deleted.

26 changes: 26 additions & 0 deletions .github/workflows/indexes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Prod | Deploy Firestore Indexes
on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'firestore.indexes.json'
- '.github/workflows/indexes.workflow.yml'
env:
PROJECT: genos-ec52a
SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }}
jobs:
deploy:
name: Deploy
runs-on: [self-hosted]
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Deploy to Firebase
uses: w9jds/firebase-action@master
with:
args: deploy --only firestore:indexes --force
env:
GCP_SA_KEY: ${{ env.SERVICE_ACCOUNT }}
PROJECT_ID: ${{ env.PROJECT }}
22 changes: 0 additions & 22 deletions .github/workflows/rules.workflow.yml

This file was deleted.

26 changes: 26 additions & 0 deletions .github/workflows/rules.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Prod | Deploy Rules
on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'firestore.rules'
- '.github/workflows/rules.yml'
env:
PROJECT: genos-ec52a
SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }}
jobs:
deploy:
name: Deploy
runs-on: [self-hosted]
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Deploy to Firebase
uses: w9jds/firebase-action@master
with:
args: deploy --only firestore:rules
env:
GCP_SA_KEY: ${{ env.SERVICE_ACCOUNT }}
PROJECT_ID: ${{ env.PROJECT }}
22 changes: 0 additions & 22 deletions .github/workflows/storage.workflow.yml

This file was deleted.

26 changes: 26 additions & 0 deletions .github/workflows/storage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Prod | Deploy Storage Rules
on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'storage.rules'
- '.github/workflows/storage.yml'
env:
PROJECT: genos-ec52a
SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }}
jobs:
deploy:
name: Deploy
runs-on: [self-hosted]
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Deploy
uses: w9jds/firebase-action@master
with:
args: deploy --only storage
env:
GCP_SA_KEY: ${{ env.SERVICE_ACCOUNT }}
PROJECT_ID: ${{ env.PROJECT }}
Loading

0 comments on commit 3206cd4

Please sign in to comment.