Skip to content

Commit

Permalink
chore: create tag from GHA (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
gastonfournier authored Jul 22, 2024
1 parent cc72344 commit 5790ef7
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Create a new release tag

on:
workflow_dispatch:
inputs:
release:
description: 'Release version'
required: true
options:
- major
- minor
- patch
- pre-release
jobs:
deploy-release:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags')
steps:
- uses: actions/checkout@v4
name: Checkout code
- name: Setup JDK
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'temurin'
cache: gradle
- run: ./gradlew release -Prelease.versionIncrementer=incrementMajor
if: github.event.inputs.release == 'major'
- run: ./gradlew release -Prelease.versionIncrementer=incrementMinor
if: github.event.inputs.release == 'minor'
- run: ./gradlew release -Prelease.versionIncrementer=incrementPatch
if: github.event.inputs.release == 'patch'
- run: ./gradlew release -Prelease.versionIncrementer=incrementPreRelease
if: github.event.inputs.release == 'pre-release'

0 comments on commit 5790ef7

Please sign in to comment.