Skip to content

Commit

Permalink
Attempt at fixing publish step (#2898)
Browse files Browse the repository at this point in the history
Summary:
Uses a custom GITHUB_PUBLISH_TOKEN with push permissions instead of the default provided GITHUB_TOKEN that cannot push to protected branches.
Pull Request resolved: #2898

Test Plan: Let's see if this fixes the publish...

Differential Revision: D18072386

fbshipit-source-id: dc9eea784977dbc1c00922e6f000e467b9b02e21
  • Loading branch information
kassens authored and facebook-github-bot committed Oct 22, 2019
1 parent 66e747a commit d764ff3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/docusaurus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ jobs:
run: |
git config --global user.email "relay-bot@users.noreply.github.com"
git config --global user.name "Relay Bot"
echo "machine github.com login relay-bot password ${{secrets.GITHUB_TOKEN}}" > ~/.netrc
echo "machine github.com login relay-bot password ${{secrets.GITHUB_PUSH_TOKEN}}" > ~/.netrc
ORGANIZATION_NAME=$(dirname $GITHUB_REPOSITORY) GIT_USER=relay-bot yarn run publish-gh-pages

0 comments on commit d764ff3

Please sign in to comment.