Skip to content

Commit

Permalink
Revert "builds for all branches, deploy only for main."
Browse files Browse the repository at this point in the history
This reverts commit 5af8097.
  • Loading branch information
jasonmadigan committed Jul 10, 2024
1 parent 5d3b92e commit a52f809
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@ on:
workflow_dispatch:
push:
branches:
- '**'
- main
pull_request:
branches:
- '**'
- main
# schedule:
# # Runs at 00:00 UTC every day
# - cron: '0 0 * * *'

permissions:
contents: write

jobs:
deploy:
if: |
github.event_name == 'push' ||
github.event_name == 'workflow_dispatch' ||
(github.event_name == 'pull_request' && github.base_ref == 'main')
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -42,6 +42,7 @@ jobs:
mike deploy --push dev -t "dev"
build:
if: github.event_name == 'pull_request' || github.event_name == 'schedule'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit a52f809

Please sign in to comment.