-
Notifications
You must be signed in to change notification settings - Fork 32
36 lines (35 loc) · 995 Bytes
/
release.yml
File metadata and controls
36 lines (35 loc) · 995 Bytes
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: release
# This workflow is triggered when publishing a new github release
# yamllint disable-line rule:truthy
on:
release:
types:
- published
workflow_dispatch:
inputs:
version:
type: string
description: Version
required: true
releaseId:
type: string
description: Release ID
required: true
dryRun:
type: boolean
description: Flag to enable the dry-run execution
default: false
jobs:
release:
permissions:
id-token: write
contents: write
uses: SonarSource/gh-action_release/.github/workflows/main.yaml@v6
with:
publishToBinaries: true
mavenCentralSync: true
slackChannel: squad-jvm-notifs
# Fallbacks for release event where inputs are not available
version: ${{ inputs.version || github.event.release.tag_name }}
releaseId: ${{ inputs.releaseId || github.event.release.id }}
dryRun: ${{ inputs.dryRun == true }}