Skip to content

Commit

Permalink
update deploy.yml to run unit tests on all branches
Browse files Browse the repository at this point in the history
  • Loading branch information
dannyl1u committed Jan 20, 2024
1 parent b6bf1c6 commit 9bdb881
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: Deploy to GitHub Pages

on:
push:
branches:
- main
workflow_dispatch:

permissions:
Expand Down Expand Up @@ -36,6 +34,7 @@ jobs:

build:
needs: test
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
Expand All @@ -60,6 +59,7 @@ jobs:

deploy:
needs: build
if: github.ref == 'refs/heads/main'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
Expand Down

0 comments on commit 9bdb881

Please sign in to comment.