Skip to content

Commit

Permalink
Review changes
Browse files Browse the repository at this point in the history
Signed-off-by: tvallin <thibault.vallin@oracle.com>
  • Loading branch information
tvallin committed Jan 29, 2025
1 parent cdfcc89 commit 793d2af
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 23 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/release-cli.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
#
# Copyright (c) 2023, 2025 Oracle and/or its affiliates.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name: "Release"

on:
push:
branches:
- 'release-cli*'
workflow_call:
inputs:
tag:
description: The release tag
required: true
type: string
default: ''

env:
JAVA_VERSION: 17
JAVA_DISTRO: oracle
MVN_ARGS: |
-B -e
-Dmaven.wagon.httpconnectionManager.ttlSeconds=60
-Dmaven.wagon.http.retryHandler.count=3
-Djdk.toolchain.version=${JAVA_VERSION}
-Dcache.enabled=true
concurrency:
group: release-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
create-cli-tag:
runs-on: ubuntu-20.04
environment: release
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.SERVICE_ACCOUNT_TOKEN }}
- uses: ./.github/actions/common
with:
run: |
version=$(echo '${{ inputs.tag }}' | cut -d '/' -f 3)
cli_tag="cli/${version}"
git tag -f "${cli_tag}"
git push --force origin refs/tags/"${cli_tag}":refs/tags/"${cli_tag}"
23 changes: 5 additions & 18 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,21 +74,8 @@ jobs:
artifact-name: io-helidon-build-tools-artifacts-${{ github.ref_name }}
artifact-path: target/nexus-staging/
run: etc/scripts/release.sh release_build
create-cli-tag:
if: ${{ startsWith(github.ref_name, 'release-cli') }}
needs: release
runs-on: ubuntu-20.04
environment: release
outputs:
cli-tag: ${{ steps.create-cli-tag.outputs.tag }}
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.SERVICE_ACCOUNT_TOKEN }}
- uses: ./.github/actions/common
with:
run: |
version=$(echo '${{ needs.create-tag.outputs.tag }}' | cut -d '/' -f 3)
cli_tag="cli/${version}"
git tag -f "${cli_tag}"
git push --force origin refs/tags/"${cli_tag}":refs/tags/"${cli_tag}"
release-cli:
needs: [ create-tag, release ]
uses: ./.github/workflows/release-cli.yml
with:
tag: ${{ needs.create-tag.outputs.tag }}
5 changes: 0 additions & 5 deletions etc/CLI_RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@

This documentation aims to describe the steps to release the Helidon CLI.

## Create CLI release tag

Push a new branch `release-cli-*` to make a usual release and then create a specific cli release tag with this
shape `cli/${version}`.

## SDKMan

Helidon team possesses credentials to access `SDKMan` REST API to do the following actions:
Expand Down

0 comments on commit 793d2af

Please sign in to comment.