Skip to content

Commit

Permalink
Do not run "build" workflow when there is no upload secret
Browse files Browse the repository at this point in the history
The only purpose of this workflow is to upload builds, so do not run it
in contexts when upload is impossible.

TN: TC07-049
  • Loading branch information
pmderodat authored and reznikmm committed Dec 22, 2020
1 parent 3b01723 commit f895b30
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ name: Build binaries
jobs:
build:
name: Build and deploy

# The only purpose of this workflow is to upload builds, so do not run it
# in contexts when upload is impossible: only the official repository has
# the secrets to upload binaries to Bintray.
if: github.repository = "AdaCore/libadalang"

strategy:
fail-fast: false
matrix: # Build debug and production
Expand Down

0 comments on commit f895b30

Please sign in to comment.