Skip to content

Commit

Permalink
Merge pull request #16 from RedFroggy/kcVersion22
Browse files Browse the repository at this point in the history
ci: rework release creation
  • Loading branch information
dajay authored Aug 2, 2023
2 parents cf76dee + 46d8341 commit f162c2b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 51 deletions.
22 changes: 14 additions & 8 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
name: Keycloak Verify email by code Tag
name: create tag/release

on:
push:
tags:
- "*"
workflow_dispatch:

jobs:
build:
Expand All @@ -27,15 +25,23 @@ jobs:
with:
java-version: 17

- id: get_version
run: echo ::set-output name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3)
- name: Set Release version
run: |
mvn versions:set -DremoveSnapshot -DgenerateBackupPoms=false
- name: Set current version
run: mvn -B versions:set -DnewVersion=${{ steps.get_version.outputs.VERSION }}
- name: Get pom version
id: get_version
run: |
echo ::set-output name=VERSION::$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
- name: Build with Maven
run: mvn -B clean verify

- uses: rickstaa/action-create-tag@v1
id: "tag_create"
with:
tag: ${{ steps.get_version.outputs.VERSION }}

- name: Upload jar
uses: actions/upload-artifact@v2
with:
Expand Down
43 changes: 0 additions & 43 deletions .github/workflows/create-tag.yml

This file was deleted.

0 comments on commit f162c2b

Please sign in to comment.