Skip to content
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

support: The URL of the GitHub pages changes on its own #846

Closed
3 tasks done
yuta-hidaka opened this issue Jan 25, 2023 · 6 comments
Closed
3 tasks done

support: The URL of the GitHub pages changes on its own #846

yuta-hidaka opened this issue Jan 25, 2023 · 6 comments
Assignees
Labels

Comments

@yuta-hidaka
Copy link

Checklist

  • I am using the latest version of this action.
  • I have read the latest README and followed the instructions.
  • I have read the latest GitHub Actions official documentation and learned the basic spec and concepts.

Describe your question

When I deploy a private static website in a private repository using GithubAction, the URL sometimes changes.

Is this a specification of this GitHubActions? (Or is it a GitHub Pages specification?) .

I would like to know why the URL sometimes changes and how to prevent the URL from changing.

Relevant links

Public repository:
YAML config:
YAML workflow:

Relevant log output

No response

Additional context.

No response

@yuta-hidaka yuta-hidaka added the support User support label Jan 25, 2023
@peaceiris
Copy link
Owner

It looks like a feature of the GitHub Enterprise Cloud. (called Privately published sites and deployed to https://*.pages.github.io path patterns)

https://docs.github.com/en/enterprise-cloud@latest/pages/getting-started-with-github-pages/changing-the-visibility-of-your-github-pages-site

We can configure a custom domain to access a constant domain pattern.

https://docs.github.com/en/enterprise-cloud@latest/pages/configuring-a-custom-domain-for-your-github-pages-site

@yuta-hidaka
Copy link
Author

yuta-hidaka commented Jan 25, 2023

@peaceiris

Hi!
Does that mean we have no control over the part of * of https://*.pages.github.io?

We can configure a custom domain to access a constant domain pattern.

According to this article.
We should use CNAME for DNS(If we use a subdomain), meaning we need the URL that never changed. So it might be still a problem🤔

Should I post it on actions/deploy-pages@v1 GitHub issue?

@peaceiris
Copy link
Owner

peaceiris commented Jan 25, 2023

Does that mean we have no control over the part of * of https://*.pages.github.io?

yes.

We should use CNAME for DNS (If we use a subdomain), meaning we need the URL that never changed. So it might be still a problem

It is a specification of the GitHub Pages on the GitHub Enterprise Cloud. Currently, we have no way to deploy our site to an URL that never will be changed on a private Enterprise Cloud repository except to configure a custom domain. (I am also using the GitHub Pages on the GitHub Enterprise Cloud and use a URL like https://<ORG_NAME>.github.io/<REPO_NAME> as entry point of our private website)

If we have our custom domain, the GitHub Pages support CNAME files so we can put a CNAME file or set our domain as follows with this action.

https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-add-cname-file-cname

Should I post it on actions/deploy-pages GitHub issues?

The above previous discussions may help you. And we can request new features to GitHub at community/community. Of course, the actions/deploy-pages repository is also a good place to ask about that, I think.

@peaceiris
Copy link
Owner

peaceiris commented Jan 25, 2023

According to the thread, actually, we can access a static URL https://<ORG_NAME>.github.io/<REPO_NAME> and it is redirected to an internal URL like https://hoge-fuga-<RANDOM>.pages.github.io/

@yuta-hidaka
Copy link
Author

@peaceiris

Thank you so much!

I tried this https://<ORG_NAME>.github.io/<REPO_NAME> then it worked.

But changing the URL is not cool...

I gonna post about URLs on the GitHub community.

Again thank you so much.
あまり関係のない内容だったのに丁寧に教えていただき、ありがとうございました🙇

@github-actions
Copy link
Contributor

This issue has been LOCKED because of it being resolved!

The issue has been fixed and is therefore considered resolved.
If you still encounter this or it has changed, open a new issue instead of responding to solved ones.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants