-
-
Notifications
You must be signed in to change notification settings - Fork 373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: deploy to other repo (#35) #36
feat: deploy to other repo (#35) #36
Conversation
Thank you. I will add some changes. |
@skyfrk You can test now. I could deploy with
- name: Deploy
uses: peaceiris/actions-gh-pages@feature/deploy_to_other_repo
env:
# ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./public
EXTERNAL_REPOSITORY: peaceiris/test-hugo-external-repo |
Test with |
We can test with Test with the docker image from Docker Hub succeeded. |
LGTM. |
Oh, internal deployment failed. Why? |
Test on my private repo with We need more tests with |
My tests using - name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@feature/deploy_to_other_repo
env:
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
PUBLISH_BRANCH: master
PUBLISH_DIR: ./public
EXTERNAL_REPOSITORY: skyfrk/skyfrk.github.io and - name: Deploy to GitHub Pages
uses: peaceiris/[email protected]
env:
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
PUBLISH_BRANCH: master
PUBLISH_DIR: ./public
EXTERNAL_REPOSITORY: skyfrk/skyfrk.github.io were successfull! 😄 Could you eloborate on the problems you're facing? |
See this log https://github.com/peaceiris/hugo-test-project/commits/gh-pages GitHub Pages build event did not start with |
Looks like a GitHub Action bug to me. Can you try to trigger an internal deployment again? |
The internal deployment failed again. - name: Deploy
uses: peaceiris/[email protected]
env:
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./public |
I don't get it. The |
(Oct 1)
|
hey I test v2.5.0-rc0 with to deploy Hugo web site internally and it's working fine |
Thank you so much @philomath213 |
After more testing, I will relase |
⚠ I didn't test this yet!
This PR addresses #35 .
PUBLISH_REPO
(format:<username>/<repo>
) which is used to build theremote_repo
strings.PUBLISH_REPO
is not set it will be set and initialized withGITHUB_REPOSITORY
.PUBLISH_REPO
is different fromGITHUB_REPOSITORY
andGITHUB_TOKEN
is used an error message will be printed and the script exits (theGITHUB_TOKEN
is scoped to the repository which runs the action).Example how this can be used:
Any feedback is welcome 😊