From 2c28d5eb5c99465e099d638be0e9fecbcbe50a10 Mon Sep 17 00:00:00 2001 From: Dan Cojocaru Date: Mon, 6 Dec 2021 14:31:59 +0200 Subject: [PATCH] Set working directory for actions --- .github/workflows/firebase-hosting-merge.yml | 5 ++++- .github/workflows/firebase-hosting-pull-request.yml | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/firebase-hosting-merge.yml b/.github/workflows/firebase-hosting-merge.yml index c747d06..afad01c 100644 --- a/.github/workflows/firebase-hosting-merge.yml +++ b/.github/workflows/firebase-hosting-merge.yml @@ -12,9 +12,12 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - run: npm run build + - name: Build Svelte app + working-directory: ./client + run: npm run build - uses: FirebaseExtended/action-hosting-deploy@v0 with: + entryPoint: ./client repoToken: '${{ secrets.GITHUB_TOKEN }}' firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_FOXBANK_69 }}' channelId: live diff --git a/.github/workflows/firebase-hosting-pull-request.yml b/.github/workflows/firebase-hosting-pull-request.yml index 92c7d20..871d07e 100644 --- a/.github/workflows/firebase-hosting-pull-request.yml +++ b/.github/workflows/firebase-hosting-pull-request.yml @@ -9,9 +9,12 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - run: npm run build + - name: Build Svelte app + working-directory: ./client + run: npm run build - uses: FirebaseExtended/action-hosting-deploy@v0 with: + entryPoint: ./client repoToken: '${{ secrets.GITHUB_TOKEN }}' firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_FOXBANK_69 }}' projectId: foxbank-69