From daf16d081d959a98feb01d89270bb564c3b1d66d Mon Sep 17 00:00:00 2001 From: 21CSM <81891917+21CSM@users.noreply.github.com> Date: Wed, 2 Oct 2024 00:24:31 -0400 Subject: [PATCH] ci: rework deploy workflow --- .github/workflows/deploy.yml | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 9d21cea..772eba1 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,4 +1,4 @@ -name: Build +name: Deploy on: push: branches: [main] @@ -42,25 +42,9 @@ jobs: name: build path: build - changes: - runs-on: ubuntu-latest - permissions: - pull-requests: read - outputs: - src: ${{ steps.filter.outputs.src }} - steps: - # For pull requests it's not necessary to checkout the code - - uses: dorny/paths-filter@v3 - id: filter - with: - filters: | - src: - - 'src/**' - deploy-preview: - needs: [build, changes] + needs: [build] runs-on: ubuntu-latest - if: ${{ needs.changes.outputs.src == 'true' }} steps: - name: Checkout uses: actions/checkout@v4 @@ -70,7 +54,6 @@ jobs: name: build path: build - name: Deploy to Firebase - if: github.actor != 'dependabot[bot]' uses: FirebaseExtended/action-hosting-deploy@v0 with: repoToken: ${{ secrets.GITHUB_TOKEN }}