Add Gitea Actions deploy workflow
Build and deploy to Firebase Hosting / build-and-deploy (push) Failing after 1m48s
Build and deploy to Firebase Hosting / build-and-deploy (push) Failing after 1m48s
This commit is contained in:
@@ -0,0 +1,26 @@
|
|||||||
|
name: Build and deploy to Firebase Hosting
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-and-deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: 22
|
||||||
|
cache: npm
|
||||||
|
|
||||||
|
- run: npm ci
|
||||||
|
- run: npm run build
|
||||||
|
|
||||||
|
- name: Deploy to Firebase Hosting
|
||||||
|
env:
|
||||||
|
FIREBASE_SERVICE_ACCOUNT: ${{ secrets.FIREBASE_SERVICE_ACCOUNT }}
|
||||||
|
run: |
|
||||||
|
echo "$FIREBASE_SERVICE_ACCOUNT" > "$RUNNER_TEMP/firebase-sa.json"
|
||||||
|
GOOGLE_APPLICATION_CREDENTIALS="$RUNNER_TEMP/firebase-sa.json" npx firebase-tools@latest deploy --project itsamejms --only hosting --non-interactive
|
||||||
Reference in New Issue
Block a user