From 933852b2fd9cd8344cd45a3fedb9a95e78d049ae Mon Sep 17 00:00:00 2001 From: Peter Meier Date: Tue, 17 Mar 2026 22:52:37 +0100 Subject: [PATCH] Add Gitea Actions workflow for Firebase deployment Co-Authored-By: Claude Sonnet 4.6 --- .gitea/workflows/deploy.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .gitea/workflows/deploy.yml diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml new file mode 100644 index 0000000..adfff75 --- /dev/null +++ b/.gitea/workflows/deploy.yml @@ -0,0 +1,31 @@ +name: Deploy to Firebase Hosting + +on: + push: + branches: + - main + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-node@v4 + with: + node-version: 22 + cache: yarn + + - name: Install dependencies + run: yarn install --frozen-lockfile + + - name: Build + env: + PUBLIC_CMS_URL: https://cms.pm86.de + PUBLIC_SITE_URL: https://windwiderstand.de + run: yarn build + + - name: Deploy to Firebase + env: + FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} + run: npx firebase-tools deploy --only hosting --token "$FIREBASE_TOKEN" --non-interactive