Skip to content

Commit a60b5c2

Browse files
committed
ci: add release.yml
1 parent dc56c68 commit a60b5c2

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/release.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Release Plugin
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
releaseVersion:
7+
description: "Release version (e.g. 1.2.0)"
8+
required: true
9+
nextVersion:
10+
description: "Next version (e.g. 1.3.0-SNAPSHOT)"
11+
required: false
12+
kestraVersion:
13+
description: "Kestra core version (e.g. 1.1.0)"
14+
required: true
15+
dryRun:
16+
description: "If true, simulate the release without pushing or tagging"
17+
required: false
18+
default: "false"
19+
20+
permissions:
21+
contents: write
22+
actions: read
23+
24+
jobs:
25+
release:
26+
runs-on: ubuntu-latest
27+
28+
steps:
29+
- name: Release plugin using reusable action
30+
uses: kestra-io/actions/composite/plugin-release@main
31+
with:
32+
releaseVersion: ${{ github.event.inputs.releaseVersion }}
33+
kestraVersion: ${{ github.event.inputs.kestraVersion }}
34+
nextVersion: ${{ github.event.inputs.nextVersion }}
35+
dryRun: ${{ github.event.inputs.dryRun }}
36+
webhookUrl: ${{ secrets.KESTRA_WEBHOOK_URL_PLUGIN_RELEASE_INDEX }}
37+
env:
38+
GITHUB_PAT: ${{ secrets.GH_PERSONAL_TOKEN }}

0 commit comments

Comments
 (0)