Skip to content

Commit

Permalink
Moved xp_version to a separate file
Browse files Browse the repository at this point in the history
  • Loading branch information
alansemenov committed Jan 18, 2024
1 parent a2910f1 commit d3d0070
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ For other OSes, please see [Goreleaser](https://goreleaser.com).
## Releasing a new version

1. Ensure [release notes](docs%2Freleases.adoc) are updated (for a feature release)
1. Change value of `:xp_version:` variable in the [installation guide](docs%2Finstall.adoc) to `X.Y.Z` (version of the upcoming release)
1. Change value of `:xp_version:` variable in the [variables file](docs%2variables.adoc) to `X.Y.Z` (version of the upcoming release)
1. Commit all the uncommitted changes. Make sure HEAD is not in dirty state (no uncommitted changes).
1. Run `git tag vX.Y.Z`
1. Run `git push origin vX.Y.Z` to trigger the release via Github actions.
Expand Down
2 changes: 1 addition & 1 deletion docs/install.adoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
:xp_version: 2.6.0
include::variables.adoc[]

= Install, upgrade or uninstall Enonic CLI

Expand Down
3 changes: 2 additions & 1 deletion docs/usage.adoc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
include::variables.adoc[]
= Getting started with Enonic CLI

Once installed, the CLI includes standard CLI help functions for listing available commands and options.
Expand All @@ -8,7 +9,7 @@ To get a list of commands, simply type the following in your terminal:
The feedback will contain available commands and options:

----
Enonic CLI v.2.7.0
Enonic CLI v{xp_version}
Manage XP instances, home folders and projects
USAGE:
Expand Down
1 change: 1 addition & 0 deletions docs/variables.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
:xp_version: 2.8.0

0 comments on commit d3d0070

Please sign in to comment.