Skip to content

Use actions/deploy-pages to deploy the website #868

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ehuss
Copy link
Contributor

@ehuss ehuss commented May 28, 2025

This switches from rust-lang/simpleinfra/github-actions/static-websites to using GitHub's native actions/deploy-pages to deploy the site. The deploy part of static-websites doesn't seem to be getting updated, and by the discussion at https://rust-lang.zulipchat.com/#narrow/channel/242791-t-infra/topic/Remove.20static-websites.20GitHub.20Action/with/474632056 I get the impression that the infra team would prefer to retire it.

r? marcoieni
Since you seem to have some context here.

I think this will need settings changes before merging. IIUC, static-websites was deploying to a branch, but deploy-pages changes the source. In Settings > Pages > Build and Deployment > Source I think the source needs to be changed to "GitHub Actions", though check my understanding since I am uncertain.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 28, 2025
@ehuss ehuss force-pushed the deploy-gh-pages branch 2 times, most recently from 1234baf to 076a8a4 Compare May 28, 2025 23:37
@Kobzol
Copy link
Contributor

Kobzol commented May 29, 2025

Yes, I think that the last time we did this we had to switch the source to GitHub Actions in the repository settings.

path: ./book

deploy:
if: github.ref == 'refs/heads/master'
Copy link
Member

@marcoieni marcoieni Jun 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please change all the conditions to if: github.ref == 'refs/heads/master' && github.repository_owner == 'rust-lang' so that this job doesn't run in forks

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

This switches from rust-lang/simpleinfra/github-actions/static-websites
to using GitHub's native actions/deploy-pages to deploy the site.
The deploy part of static-websites doesn't seem to be getting updated,
and by the discussion at https://rust-lang.zulipchat.com/#narrow/channel/242791-t-infra/topic/Remove.20static-websites.20GitHub.20Action/with/474632056
I get the impression that the infra team would prefer to retire it.
@ehuss ehuss force-pushed the deploy-gh-pages branch from 31ac924 to 3c4612d Compare June 7, 2025 01:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants