-
Notifications
You must be signed in to change notification settings - Fork 179
60 lines (57 loc) · 2.17 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Release Smallrye Reactive Messaging
on:
workflow_dispatch:
inputs:
previousVersion:
description: 'Previous version'
required: true
version:
description: 'Release version'
required: true
deployWebsite:
description: 'Shall we deploy the website?'
required: true
default: 'true'
clearRevAPI:
description: 'Shall we clear RevAPI justifications?'
required: true
default: 'true'
jobs:
release:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }}
RELEASE_VERSION: ${{ github.event.inputs.version }}
DEPLOY_WEBSITE: ${{ github.event.inputs.deployWebsite }}
CLEAR_REVAPI: ${{ github.event.inputs.clearRevAPI }}
JRELEASER_TAG_NAME: ${{ github.event.inputs.version }}
JRELEASER_PREVIOUS_TAG_NAME: ${{ github.event.inputs.previousVersion }}
JRELEASER_GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
steps:
- name: Git checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.RELEASE_TOKEN }}
- name: Java setup
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Install just
uses: taiki-e/install-action@just
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.9
cache: 'pipenv'
cache-dependency-path: documentation/Pipfile.lock
- name: Install pipenv
run: pip install pipenv
- name: Perform the release steps
run: |
curl -s "https://get.sdkman.io?rcupdate=false" | bash
source ~/.sdkman/bin/sdkman-init.sh && sdk install jbang
just perform-release