Skip to content

Add PR Preview actions #381

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 13 commits into
base: development
Choose a base branch
from
Open

Add PR Preview actions #381

wants to merge 13 commits into from

Conversation

mikehosmar
Copy link
Member

@mikehosmar mikehosmar commented May 22, 2025

Two options.

  • Built in Amplify preview
    • Pros:
      • Action to show when build is complete
      • Supported by AWS
    • Cons:
      • No easy way to apply to new/all branches
  • GH Action:
    • Pros:
      • When it runs is controllable in the same way any action is
      • We can add/edit features
    • Cons:
      • We need to support it
      • Original repo is stale by 2 years.

Copy link

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-381.d15wgalg8jexko.amplifyapp.com

@mikehosmar mikehosmar changed the title Mh/wip/preview test Preview Testing May 22, 2025
@mikehosmar mikehosmar added the preview environment Manually create preview build label May 23, 2025
Copy link

Preview branch generated at https://mh-wip-preview-test.dfy90wyu8dics.amplifyapp.com

@mikehosmar mikehosmar force-pushed the mh/wip/preview-test branch from fa5f073 to 920d085 Compare May 23, 2025 01:22
@mikehosmar
Copy link
Member Author

After @tonybaltovski's comment I adjusted the action to allow the creation of rc branches in Amplify with the built-in preview setting enabled. So this is the best of both worlds.

@mikehosmar mikehosmar changed the title Preview Testing Add PR Preview actions May 23, 2025
@mikehosmar mikehosmar marked this pull request as ready for review May 23, 2025 15:56
role-to-assume: ${{ secrets.AWS_GITHUB_ACTIONS_ROLE }}
output-credentials: true
- name: cleanup PR preview branch
uses: mikehosmar/amplify-preview-actions@sed-replace-all
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you elaborate on what this dependency is?

Copy link
Member Author

Choose a reason for hiding this comment

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

This is an action which contains the amplify commands to create and close branches.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I just meant to highlight the "uses: mikehosmar/amplify-preview-actions@sed-replace-all" line. I wasn't sure if that was a link to something in your personal account somewhere and, if so, should we move it to a more accessible location.

Copy link
Member Author

Choose a reason for hiding this comment

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

I did Fork the action to my account to make sure we have a copy which we control. We could fork it to clearpathrobotics if you would like.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yes, it would be preferable to fork to clearpathrobotics.

Switch to standard app for previews
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
preview environment Manually create preview build
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants