From 0e61b56099276df12e4f135d5c97fe18d96b5ca8 Mon Sep 17 00:00:00 2001 From: Thor Galle Date: Tue, 20 Aug 2024 19:21:51 +0300 Subject: [PATCH] build: add more files to GH actions to ignore --- .github/workflows/firebase-hosting-merge-beta.yml | 8 ++++++++ .github/workflows/firebase-hosting-merge-staging.yml | 8 ++++++++ .github/workflows/firebase-hosting-merge.yml | 8 ++++++++ .github/workflows/firebase-hosting-pull-request.yml | 8 ++++++++ 4 files changed, 32 insertions(+) diff --git a/.github/workflows/firebase-hosting-merge-beta.yml b/.github/workflows/firebase-hosting-merge-beta.yml index 87f6ca9a..f3b2a1d8 100644 --- a/.github/workflows/firebase-hosting-merge-beta.yml +++ b/.github/workflows/firebase-hosting-merge-beta.yml @@ -3,12 +3,20 @@ on: push: branches: - beta + # Since this action only deploys the front-end SvelteKit SPA + # backend resources can be ignored. paths-ignore: + # An updated backend shouldn't trigger deploys - api/** + # We don't have automated Firestore rules deploys yet. + - firestore* + # Updated docs shouldn't trigger deploys - docs/** - README.md - CONTRIBUTING.md - SECURITY.md + # We don't have automated front-end tests. + - tests jobs: build_and_deploy: runs-on: ubuntu-latest diff --git a/.github/workflows/firebase-hosting-merge-staging.yml b/.github/workflows/firebase-hosting-merge-staging.yml index bf09f327..1969b0fe 100644 --- a/.github/workflows/firebase-hosting-merge-staging.yml +++ b/.github/workflows/firebase-hosting-merge-staging.yml @@ -3,12 +3,20 @@ on: push: branches: - staging + # Since this action only deploys the front-end SvelteKit SPA + # backend resources can be ignored. paths-ignore: + # An updated backend shouldn't trigger deploys - api/** + # We don't have automated Firestore rules deploys yet. + - firestore* + # Updated docs shouldn't trigger deploys - docs/** - README.md - CONTRIBUTING.md - SECURITY.md + # We don't have automated front-end tests. + - tests jobs: build_and_deploy: runs-on: ubuntu-latest diff --git a/.github/workflows/firebase-hosting-merge.yml b/.github/workflows/firebase-hosting-merge.yml index 91aebe69..be88e017 100644 --- a/.github/workflows/firebase-hosting-merge.yml +++ b/.github/workflows/firebase-hosting-merge.yml @@ -3,12 +3,20 @@ on: push: branches: - master + # Since this action only deploys the front-end SvelteKit SPA + # backend resources can be ignored. paths-ignore: + # An updated backend shouldn't trigger deploys - api/** + # We don't have automated Firestore rules deploys yet. + - firestore* + # Updated docs shouldn't trigger deploys - docs/** - README.md - CONTRIBUTING.md - SECURITY.md + # We don't have automated front-end tests. + - tests jobs: build_and_deploy: runs-on: ubuntu-latest diff --git a/.github/workflows/firebase-hosting-pull-request.yml b/.github/workflows/firebase-hosting-pull-request.yml index 0980a6f6..b6fadce3 100644 --- a/.github/workflows/firebase-hosting-pull-request.yml +++ b/.github/workflows/firebase-hosting-pull-request.yml @@ -2,12 +2,20 @@ name: Deploy to Firebase Hosting on PR on: pull_request: # This might happen https://github.com/actions/runner/issues/2324 + # Since this action only deploys the front-end SvelteKit SPA + # backend resources can be ignored. paths-ignore: + # An updated backend shouldn't trigger deploys - api/** + # We don't have automated Firestore rules deploys yet. + - firestore* + # Updated docs shouldn't trigger deploys - docs/** - README.md - CONTRIBUTING.md - SECURITY.md + # We don't have automated front-end tests. + - tests jobs: build_and_preview: if: "${{ github.event.pull_request.head.repo.full_name == github.repository }}"