forked from keycloak/keycloak
-
Notifications
You must be signed in to change notification settings - Fork 4
36 lines (29 loc) · 926 Bytes
/
release.yml
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
name: Washinton Release
on:
push:
tags:
- "v*.*.*"
workflow_dispatch:
inputs:
version:
description: 'Release version (e.g., v1.0.0)'
required: true
jobs:
build_and_release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Extract version from tag
run: echo "VERSION=$(echo $GITHUB_REF | sed 's/refs\/tags\///')" >> $GITHUB_ENV
- name: Build Keycloak
uses: ./.github/actions/build-keycloak
with:
upload-m2-repo: false
- name: Rename artifact
run: mv quarkus/dist/target/keycloak*.tar.gz quarkus/dist/target/keycloak-$VERSION.tar.gz
- name: Create GitHub Release and Upload Artifact
run: |
gh release create $VERSION quarkus/dist/target/keycloak-$VERSION.tar.gz --title "Release $VERSION"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}