Skip to content

Commit

Permalink
Update doc build job to deploy only if ref is main (#2386)
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: #2386

Reviewed By: PaulZhang12

Differential Revision: D62586537

Pulled By: iamzainhuda

fbshipit-source-id: ce8f2229872e9a21950552af5c54f230fa8c67e6
  • Loading branch information
svekars authored and facebook-github-bot committed Sep 12, 2024
1 parent 760758f commit 4530b72
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ jobs:
- name: Get output time
run: echo "The time was ${{ steps.build.outputs.time }}"
- name: Deploy
if: github.ref == 'refs/heads/main'
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 4530b72

Please sign in to comment.