AL-Go icon indicating copy to clipboard operation
AL-Go copied to clipboard

Publish to Environment - version selection question

Open buzzwick opened this issue 1 year ago • 8 comments

Data prompt for Publish to Environment says

App version to deploy to environment(s) (current, prerelease, draft, latest or version number)

Do these versions apply only to builds of the selected branch or can they also refer to release names? Could "current" refer both to the most recent version of the app and to a release named "current"?

Additionally, where is the app version number in question located? app.json?

Can there be more than one "version" of the selected branch?

buzzwick avatar Nov 10 '23 01:11 buzzwick

AL-Go would never expect a release called current - as you would have to delete that and re-create that again and again. A release should have a version number.

The "magic" words you mention translate to:

  • latest is the latest successful build (of the branch in which the Publish is running)
  • current is the latest released version (i.e. the current version on the market) - not branch specific
  • prerelease is the latest pre-release version - not branch specific
  • draft is the latest draft version - not branch specific

The version number is the version number of the artifacts generated (controlled by the repoVersion setting) in the branch in which the publish is running.

image

3.0.432.0 in the above list.

Currently, you cannot deploy an old release to an environment

freddydk avatar Nov 10 '23 05:11 freddydk

Okay, first: "AL-Go would never expect a release called current - as you would have to delete that and re-create that again and again." Hilarious because that is exactly what I have been doing, only using the label "latest" instead of "current." We will stop doing that now...

Second: I did not realize these were "magic" terms--i.e., that they incorporated intelligence about what they are referring to. So there is still some clarification needed. Namely, "latest" refers to a build, whereas all the others refer to releases--is that correct?

Third: So far I only knew about artifacts associated with a release. I see where there is a tab for Artifacts in the Action runs, but I can't seem to find any that actually have Artifacts in them. So there must be only a subset of Actions that actually create build artifacts? Is there a quick way to find what the "latest" artifacts are?

buzzwick avatar Nov 10 '23 19:11 buzzwick

Looks like I should check for these names of releases and throw an error...:-) On artifacts - only the CI/CD workflow produces useful artifacts.

freddydk avatar Nov 10 '23 23:11 freddydk

So--looking at the parameter prompts for Create Release: if I give a release a name of "v22.2", does it still automatically get the label of "latest" in that green oblong circle?

And does "current" in the Publish to Environment actually refer to a Release labeled "latest"? Here it seems that "latest" refers to the app builds--NOT--the release with that "latest" label--where all the others refer to Releases. Correct ?

buzzwick avatar Nov 11 '23 17:11 buzzwick

current refers to the latest release - i.e. the release with the highest version number - i.e. the release shown on github: image

freddydk avatar Nov 14 '23 09:11 freddydk

Okay. I get it--I was thrown off by the correspondence between "latest" as a build reference, and "Latest" as an automatically-supplied release label. But now I have your explanations to refer to when I run one of these Actions. Thank you for your patience.

buzzwick avatar Nov 14 '23 13:11 buzzwick

and thanks for pointing out the reason for this misunderstanding I will also create a chapter in the workshop about releases...

freddydk avatar Nov 14 '23 20:11 freddydk

Yes please!! Obviously I need it! Very welcome!

buzzwick avatar Nov 14 '23 20:11 buzzwick