Skip to content

chore: preview workflow split - #349

Open
vitormattos wants to merge 5 commits into
mainfrom
chore/preview-workflow-split
Open

chore: preview workflow split#349
vitormattos wants to merge 5 commits into
mainfrom
chore/preview-workflow-split

Conversation

@vitormattos

@vitormattos vitormattos commented Aug 3, 2026

Copy link
Copy Markdown
Member

Objective: Split the preview pipeline into two workflows so preview builds can run for fork-based pull requests without exposing the deploy token.

Motivation: Before this PR, previews were not generated for pull requests opened from forks because the deploy step required repository secrets.
With this change, the build runs in the PR context and the deploy runs separately in a trusted context, reducing secret exposure risk while enabling previews for fork PRs.

With this will be possible see the preview at the follow PR:

Important

In this PR transitioning from the previous preview generation method to the new one, the Preview Build runs and publishes the artifact as usual, but the preview-deploy does not trigger yet because workflows using workflow_run are only activated when they already exist on the main branch.

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
@vitormattos
vitormattos requested a review from YvesCesar August 3, 2026 17:43
@vitormattos vitormattos self-assigned this Aug 3, 2026
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.

1 participant