34 lines
745 B
YAML
34 lines
745 B
YAML
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
|
|
|
|
- name: Enable Corepack (Yarn)
|
|
run: corepack enable
|
|
|
|
- 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
|