-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (35 loc) · 1.1 KB
/
publish-ide-plugin.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
name: Build IDE plugin and create a GitHub Release
on:
workflow_dispatch:
jobs:
publish-ide-plugin:
runs-on: ubuntu-latest
steps:
- name: Checkout project sources
uses: actions/checkout@v3
- name: Set up Java
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Build plugin
run: ./gradlew buildKelpIdePlugin readVersion
- name: Fetch plugin version
id: print_version
run: echo "plugin-version=$(cat build/VERSION)" >> $GITHUB_OUTPUT
- name: Create plugin release
uses: ncipollo/release-action@v1
with:
tag: v${{ steps.print_version.outputs.plugin-version }}
artifacts: "./build/distributions/*"
body: "TODO"
draft: true
- name: Create plugin repo release
uses: ncipollo/release-action@v1
with:
tag: ideRepo
artifacts: "./build/updatePlugins.xml"
allowUpdates: true
makeLatest: false