Skip to content

Commit

Permalink
Merge pull request #65 from 21CSM/6-productionized-web-page
Browse files Browse the repository at this point in the history
ci: rework deploy workflow
  • Loading branch information
21CSM authored Oct 2, 2024
2 parents b8a753d + daf16d0 commit f2a2881
Showing 1 changed file with 2 additions and 19 deletions.
21 changes: 2 additions & 19 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build
name: Deploy
on:
push:
branches: [main]
Expand Down Expand Up @@ -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
Expand All @@ -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 }}
Expand Down

0 comments on commit f2a2881

Please sign in to comment.