-
-
Notifications
You must be signed in to change notification settings - Fork 11
49 lines (47 loc) · 2.08 KB
/
build-kotlin-dispatcher.yaml
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
name: build-kotlin-dispatcher
on:
workflow_dispatch:
inputs:
gradle_args:
description: 'Gradle args for every step'
default: ''
required: false
type: string
deploy_docs:
description: 'Deploy docs to GitHub Pages'
default: false
required: false
type: boolean
publish_all_docs:
description: 'Publish all docs instead of only API docs and reports'
required: false
default: false
type: boolean
kotlin_dev_version:
description: 'Kotlin dev version, for example `1.9.20-dev-5788`'
default: ''
required: false
type: string
semver_stage:
description: 'Version stage (`semver.stage` property), for example `snapshot`'
default: 'snapshot'
required: false
type: string
semver_checkClean:
description: 'Check the repo status at each step with `-P semver.checkClean=true`'
default: false
required: false
type: boolean
jobs:
build:
uses: JavierSegoviaCordoba/reusable-workflows/.github/workflows/build-kotlin.yaml@main
with:
allow-github-actor-bots: false
gradle-args: '${{ github.event.inputs.gradle_args }} -P kotlinVersion=${{ github.event.inputs.kotlin_dev_version }} -P semver.stage=${{ github.event.inputs.semver_stage }} -P semver.checkClean=${{ github.event.inputs.semver_checkClean }}'
run_before_args: './gradlew assemble publishToMavenLocalTest ${{ github.event.inputs.gradle_args }} -P kotlinVersion=${{ github.event.inputs.kotlin_dev_version }} -P semver.tagPrefix=${{ github.event.inputs.publish_snapshot_tag_prefix }} -P semver.stage=${{ github.event.inputs.semver_stage }} -P semver.checkClean=${{ github.event.inputs.semver_checkClean }}'
deploy-docs: ${{ github.event.inputs.deploy_docs }}
publish-all-docs: '${{ github.event.inputs.publish_all_docs }}'
gradle-args-publish-snapshot: '-P semver.tagPrefix=p'
gradle-args-publish-snapshot-tag-prefix-two: '-P semver.tagPrefix=c'
restore-kotlin-native-cache: false
secrets: inherit