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

add deployment workflows for GitHub Pages #2038

Merged
merged 14 commits into from Apr 19, 2022
Merged

add deployment workflows for GitHub Pages #2038

merged 14 commits into from Apr 19, 2022

Conversation

rezrah
Copy link
Contributor

@rezrah rezrah commented Apr 19, 2022

What are you trying to accomplish?

Part of github/primer#886

Replaces deployment target for all docs from Vercel to GitHub Pages

What approach did you choose and why?

Utilises reusable workflows make future deployments consistent with other Primer repo's.

What should reviewers focus on?

  • Use the new preview urls, which will appear in all new PRs - including this one - as follows:

    Screenshot 2022-04-19 at 14 41 00
    ☝️ Look for this comment at the bottom of the PR

    or

    Screenshot 2022-04-19 at 14 41 10
    ☝️ find the latest deployment preview URL in the Environments section at this bottom of this PR

  • Review the latest preview deployment and check everything is appearing correctly 🙏

    • Please check Doctocat and Storybook content

Can these changes ship as is?

  • Yes, this PR does not depend on additional changes. 🚢

Todo

  • Create environments
  • Configure feature flags

Post-merge

  • Remove Vercel environment
  • Remove project and deployment triggers in Primer Vercel account

@rezrah rezrah requested review from jonrohan and colebemis Apr 19, 2022
@rezrah rezrah requested a review from as a code owner Apr 19, 2022
@changeset-bot
Copy link

@changeset-bot changeset-bot bot commented Apr 19, 2022

⚠️ No Changeset found

Latest commit: 80f4c22

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@rezrah rezrah temporarily deployed to github-pages Apr 19, 2022 Inactive
@rezrah rezrah temporarily deployed to github-pages Apr 19, 2022 Inactive
@rezrah rezrah temporarily deployed to github-pages Apr 19, 2022 Inactive
Copy link
Contributor

@langermank langermank left a comment

Thank you! 🚀

outputs:
# To avoid deploying documentation for unrelease changes, we check the number of changeset files.
# If it's 0, we deploy.
should_deploy: ${{ steps.changeset-count.outputs.change_count == 0 }}
Copy link
Member

@jonrohan jonrohan Apr 19, 2022

Choose a reason for hiding this comment

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

Interesting I've never seen these guard options

@jonrohan jonrohan merged commit 40b9e16 into main Apr 19, 2022
12 checks passed
@jonrohan jonrohan deleted the rezrah/github-pages branch Apr 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants