-
Notifications
You must be signed in to change notification settings - Fork 129
65 lines (62 loc) · 2.03 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
61
62
63
64
65
name: Release Smallrye Mutiny
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
defaults:
run:
shell: bash
env:
RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }}
SECRET_FILES_PASSPHRASE: ${{ secrets.SECRET_FILES_PASSPHRASE }}
PREVIOUS_VERSION: ${{ github.event.inputs.previousVersion }}
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_GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
steps:
- name: Git checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.RELEASE_TOKEN }}
- name: Java setup
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: maven
- name: Install just
uses: taiki-e/install-action@just
- name: Install yq
uses: mikefarah/yq@master
- name: Setup Python
if: ${{ github.event.inputs.deployWebsite == 'true' }}
uses: actions/setup-python@v4
with:
python-version: 3.x
- name: Install MkDocs dependencies
if: ${{ github.event.inputs.deployWebsite == 'true' }}
run: .build/install-mkdocs-deps.sh
- name: Perform the release steps
run: |
curl -s "https://get.sdkman.io" | bash
source ~/.sdkman/bin/sdkman-init.sh && sdk install jbang
just -f .build/justfile-for-release -d . perform-release