Skip to content

Commit

Permalink
make WebsiteAutodeployment job only work on master build
Browse files Browse the repository at this point in the history
  • Loading branch information
serena-ruan committed Nov 2, 2021
1 parent 0509685 commit d86b25c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,7 @@ jobs:
echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc
cd website
yarn && GIT_USER="${GH_NAME}" yarn deploy
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
env:
GH_NAME: $(gh-name)
GH_EMAIL: $(gh-email)
Expand Down

0 comments on commit d86b25c

Please sign in to comment.