Skip to content

Commit

Permalink
builds for all branches, deploy only for main.
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmadigan committed Jun 11, 2024
1 parent 9fab6cf commit 5af8097
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 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'
if: |
github.event_name == 'push' ||
github.event_name == 'workflow_dispatch' ||
(github.event_name == 'pull_request' && github.base_ref == 'main')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -42,7 +42,6 @@ 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 5af8097

Please sign in to comment.