Skip to content

Commit

Permalink
chore: Trigger CI builds on release branch only
Browse files Browse the repository at this point in the history
  • Loading branch information
tomjanus committed Sep 20, 2024
1 parent 335f2ed commit b3f61c7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ name: "RE-Emission Build"
on:
push:
branches:
- master
- release
pull_request:
branches:
- master
- release
workflow_dispatch:
branches:
- master
- release

env:
# Only build on Python 3.10
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/build_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,14 @@ name: Create and publish a Docker image
# Configures this workflow to run every time a change is pushed to the branch called `release`.
on:
push:
branches: ['master']
branches:
- release
pull_request:
branches:
- release
workflow_dispatch:
branches:
- release

# Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds.
env:
Expand Down

0 comments on commit b3f61c7

Please sign in to comment.