From e33846bc0f22dec66edb82a6d8b560767fdd3bb7 Mon Sep 17 00:00:00 2001 From: Jonathan Rampersad Date: Mon, 12 May 2025 17:10:05 -0400 Subject: [PATCH] Add CI/CD --- .gitea/workflows/firebase-hosting-deploy.yaml | 24 +++++++++++++++++++ .gitignore | 2 ++ 2 files changed, 26 insertions(+) create mode 100644 .gitea/workflows/firebase-hosting-deploy.yaml diff --git a/.gitea/workflows/firebase-hosting-deploy.yaml b/.gitea/workflows/firebase-hosting-deploy.yaml new file mode 100644 index 0000000..957f0f0 --- /dev/null +++ b/.gitea/workflows/firebase-hosting-deploy.yaml @@ -0,0 +1,24 @@ +name: Deploy to Firebase Hosting + +on: + push: + branches: + - main + +jobs: + build_and_deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout Repository + uses: actions/checkout@v4 # Gitea should be compatible; adjust if your instance uses full URLs + + - name: Deploy to Firebase Hosting + uses: FirebaseExtended/action-hosting-deploy@v0 + with: + # Gitea provides GITEA_TOKEN similarly to GitHub's GITHUB_TOKEN. + # This is used by the action to comment on pull requests with preview URLs if applicable. + # For direct deploys to 'live' on push to main, it might be less critical but good to include. + repoToken: '${{ secrets.GITEA_TOKEN }}' + firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_KEY }}' + projectId: '${{ secrets.FIREBASE_PROJECT_ID }}' + channelId: live \ No newline at end of file diff --git a/.gitignore b/.gitignore index b17f631..4d03c2c 100644 --- a/.gitignore +++ b/.gitignore @@ -67,3 +67,5 @@ node_modules/ # dataconnect generated files .dataconnect + +imposter-e327f-firebase-adminsdk-fbsvc-0a513d7458.json \ No newline at end of file