Files
windwiderstand.de/.gitea/workflows/deploy.yml
T
Peter Meier c688519e7e
Deploy to Firebase Hosting / deploy (push) Failing after 1m24s
Add workflow inputs for branch and URL configuration in Gitea Actions deployment
2026-03-17 23:40:33 +01:00

50 lines
1.2 KiB
YAML

name: Deploy to Firebase Hosting
on:
push:
branches:
- main
workflow_dispatch:
inputs:
ref:
description: "Branch/Ref ausführen"
required: false
default: "main"
public_cms_url:
description: "PUBLIC_CMS_URL"
required: false
default: "https://cms.pm86.de"
public_site_url:
description: "PUBLIC_SITE_URL"
required: false
default: "https://windwiderstand.de"
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}
- uses: actions/setup-node@v4
with:
node-version: 22
- name: Enable Corepack (Yarn)
run: corepack enable
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build
env:
PUBLIC_CMS_URL: ${{ inputs.public_cms_url }}
PUBLIC_SITE_URL: ${{ inputs.public_site_url }}
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