-
Notifications
You must be signed in to change notification settings - Fork 20
47 lines (39 loc) · 1.23 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
name: Manual Release
on:
workflow_dispatch:
jobs:
releaseDraft:
# needs: [build, verify]
name: Release Draft
# if: github.event_name != 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '11'
- name: Fetch Sources
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Restore gradle cache
uses: actions/cache@v2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-caches-${{ hashFiles('**/*.gradle', '**/*.gradle.kts', 'gradle.properties') }}
- name: Restore gradle wrapper cache
uses: actions/cache@v2
with:
path: ~/.gradle/wrapper
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
- name: Release Plugin
id: release
run: |
./gradlew release \
-Prelease.customUsername=${{ github.actor }} \
-Prelease.customPassword=${{ github.token }} \
buildPlugin
- name: Publish EAP plugin
env:
PUBLISH_TOKEN: ${{ secrets.PUBLISH_TOKEN }}
run: ./gradlew publishPlugin