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

[Question]: Publish To Environment From Branch #1415

Open
tscottjendev opened this issue Jan 24, 2025 · 2 comments
Open

[Question]: Publish To Environment From Branch #1415

tscottjendev opened this issue Jan 24, 2025 · 2 comments
Labels
question Further information is requested

Comments

@tscottjendev
Copy link

Question

Can I publish to an environment from a branch other than the default branch (e.g. main)?

What does the "Use Workflow from" option do? Does it simply select the action from the specified branch?

Image

@tscottjendev tscottjendev added the question Further information is requested label Jan 24, 2025
@HazardMK
Copy link

Yes. You can run workflow from different branch than "main" (if there is no allowed/restricted branches described in your Environment settings). Although running publish to environment one with "current" should look for latest release, if not found you probably will get an error or nothing will be published. In this case you should use "latest" as it takes the latest build (artifacts from your last CI\CD run).

@freddydk
Copy link
Contributor

Correct - if you select a branch and select Latest, you will publish the latest build from that branch to the environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants