This repository was archived by the owner on Apr 17, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (43 loc) · 1.39 KB
/
release.yaml
File metadata and controls
50 lines (43 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Release Workflow
run-name: "Releasing ${{ github.event.repository.name }} #${{github.run_number}}"
# Trigger workflow manually
on:
workflow_dispatch:
inputs:
release_version:
type: string
description: "(Optional) Custom Release Version"
required: false
version_type:
description: 'Development version type to increment'
required: true
default: 'minor'
type: choice
options:
- major
- minor
- patch
env:
BRANCH_NAME: ${{ github.ref_name }}
TRUNK_BRANCH_NAME: ${{ github.event.repository.default_branch }}
jobs:
release:
name: Release
runs-on: ubuntu-24.04
if: github.repository_owner == 'ikmdev'
steps:
- name: Verify Branch
if: env.BRANCH_NAME != env.TRUNK_BRANCH_NAME
run: |
echo "ERROR: Attempting to release from branch ${{ env.BRANCH_NAME }}. Release from ${{ env.TRUNK_BRANCH_NAME }} branch only."
exit 1
- name: Checkout Repository
uses: actions/checkout@v4
with:
token: ${{secrets.IKMDEVOPS_PAT_TOKEN}}
- name: Shared Release Action
uses: ikmdev/maven-semver-release-action@v4.0.2
with:
version_type: ${{ github.event.inputs.version_type }}
github_token: ${{secrets.GITHUB_TOKEN}}
release_version: ${{ github.event.inputs.release_version }}