-
Hello. I'm trying to use this to deploy to an external repository. This is what my workflow yml looks like: - name: Deploy and Publish Site
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
ACCESS_TOKEN: ${{ secrets.DEPLOY_ACCESS_TOKEN }}
REPOSITORY_NAME: orgname/destination-github-repository
BRANCH: main
FOLDER: _site
COMMIT_MESSAGE: "Publishing site to orgname/destination-github-repository"
GIT_CONFIG_EMAIL: [email protected]
GIT_CONFIG_NAME: github-user I've made a personal access token for the But when the action actually goes to run, the build errors with this:
Why is it trying to deploy as @JamesIves The documentation sort of implies that I can use the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hmm.... actually after more digging, I guess it works with SSH as well. If I set |
Beta Was this translation helpful? Give feedback.
Hmm.... actually after more digging, I guess it works with SSH as well. If I set
ssh: true
, and then do the steps here: https://github.com/JamesIves/github-pages-deploy-action/tree/dev#using-an-ssh-deploy-key-, it works. I added the public key (*.pub
) to the destination repository, and the private key as a secret on the source repository. Thanks for the decent documentation on using the SSH keys!