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

feat: Configuring GHA workflow for dotcli release. #26058

Closed
wants to merge 19 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
c6f90c2
feat: Configuring GHA workflow for dotcli release.
dcolina Sep 12, 2023
44174f3
feat: Testing GHA workflow cli release
dcolina Sep 13, 2023
aa3e049
Merge branch 'master' of github.com:dotCMS/core into 25951-implement-…
dcolina Sep 13, 2023
214104b
feat: Testing GHA workflow cli release.+1
dcolina Sep 13, 2023
629a701
feat(cli): Testing GHA workflow cli release. Listing local branches.
dcolina Sep 13, 2023
4002d80
fix(cli): Testing GHA workflow cli release. Listing local branches.
dcolina Sep 13, 2023
9debe5e
fix(cli): Testing GHA workflow cli release. Listing local branches. +1.
dcolina Sep 13, 2023
dde1c79
fix(cli): Testing GHA workflow cli release. Listing local branches. +2.
dcolina Sep 13, 2023
9568ba3
fix(cli): Testing GHA workflow cli release. Listing local branches. +3.
dcolina Sep 13, 2023
4aecb9f
fix(cli): Testing GHA workflow cli release. Using merge branch for te…
dcolina Sep 13, 2023
4c994c4
fix(cli): Testing GHA workflow cli release. Removing unuseful comments.
dcolina Sep 13, 2023
50b8842
fix(cli): Testing update pom version for creating release.
dcolina Sep 13, 2023
486090e
fix(cli): Testing CLI release process.
dcolina Sep 13, 2023
871d5dc
fix(cli): Testing with pull_request origin branch.
dcolina Sep 13, 2023
8e46856
Merge branch '25951-implement-gha-generate-cli-release' of github.com…
dcolina Sep 13, 2023
537dfd1
fix(cli): Testing with workflow_dispatch trigger.
dcolina Sep 13, 2023
a50cdeb
fix(cli): Testing basic GHA workflow.
dcolina Sep 13, 2023
203952d
fix(cli): Testing basic GHA workflow. Run workflow button does not ap…
dcolina Sep 13, 2023
3fb7215
fix(cli): Testing basic GHA workflow. Run workflow button does not ap…
dcolina Sep 13, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/cli-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: dotCLI Release
on:
workflow_dispatch:
inputs:
version:
description: 'Release version'
required: true
branch:
description: 'Branch to cut from'
required: true
dry_run:
description: 'Dry run'
required: true
default: true
push:
branches:
- '25951-implement-gha-generate-cli-release'

jobs:
helloworld:
name: Hello world
runs-on: ubuntu-latest
steps:
- name: Hello world
run: |
echo "Hello world"
echo "version: ${{ github.event.inputs.version || 'latest' }}"
echo "branch: ${{ github.event.inputs.branch || github.ref_name }}"
echo "dry_run: ${{ github.event.inputs.dry_run }}"
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
<module>dotcms-integration</module>
<module>plugins-core</module>
<module>reports</module>
<module>tools/dotcms-cli</module>
</modules>
<distributionManagement>
<repository>
Expand Down
52 changes: 52 additions & 0 deletions tools/dotcms-cli/jreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Generated with JReleaser 1.8.0 at 2023-09-05T09:49:01.355976+02:00
project:
name: dotcms-cli
description: app -- DotCMS CLI
longDescription: app -- DotCMS Quarkus CLI application
versionPattern: 'CUSTOM'
java:
multiProject: true
copyright: |
<p>© 2021 dotCMS Inc. All rights reserved.</p>
<p>dotCMS is a registered trademark of dotCMS Inc.</p>
<p>dotCMS is licensed under Apache License 2.0.</p>
<p>For details, see https://dotcms.com/legal</p>
license: Apache-2.0
authors:
- dotCMS
links:
homepage: https://dotcms.com
documentation: https://dotcms.com/docs/latest

release:
github:
tagName: 'dotcli{{projectVersion}}'
releaseName: 'DOTCLI - {{projectVersion}}'
overwrite: false
changelog:
formatted: ALWAYS
format: '- {{commitShortHash}} {{commitTitle}}'
preset: conventional-commits
contributors:
format: '- {{contributorName}}'
hide:
categories:
- merge
contributors:
- GitHub
- dependabot

distributions:
dotcms-cli:
type: SINGLE_JAR
active: ALWAYS
stereotype: CLI
artifacts:
- path: tools/dotcms-cli/cli/target/cli-{{projectVersion}}-runner.jar
transform: tools/dotcms-cli/cli/target/dotcli-{{projectVersion}}.jar

packagers:
brew:
active: ALWAYS
continueOnError: false
multiPlatform: true
20 changes: 20 additions & 0 deletions tools/dotcms-cli/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
<quarkus.platform.group-id>io.quarkus.platform</quarkus.platform.group-id>
<quarkus.platform.version>2.9.1.Final</quarkus.platform.version>
<failsafe-plugin.version>3.0.0-M5</failsafe-plugin.version>
<jreleaser-plugin.version>1.8.0</jreleaser-plugin.version>
</properties>
<dependencyManagement>
<dependencies>
Expand Down Expand Up @@ -48,4 +49,23 @@
</plugins>
</pluginManagement>
</build>
<profiles>
<profile>
<id>release</id>
<build>
<plugins>
<plugin>
<groupId>org.jreleaser</groupId>
<artifactId>jreleaser-maven-plugin</artifactId>
<version>${jreleaser-plugin.version}</version>
<inherited>false</inherited>
<configuration>
<gitRootSearch>true</gitRootSearch>
<configFile>${project.basedir}/jreleaser.yml</configFile>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>