-
Notifications
You must be signed in to change notification settings - Fork 13
72 lines (59 loc) · 2.03 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: Publish Release
on:
workflow_dispatch:
env:
GITHUB_TOKEN: ${{ secrets.BANNO_AUTOBOT_GITHUB_TOKEN }}
jobs:
release:
name: Publish Release
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 21
- uses: gradle/actions/setup-gradle@v4
- uses: actions/checkout@v4
with:
token: ${{ env.GITHUB_TOKEN }}
- id: current_version
uses: christian-draeger/[email protected]
with:
path: gordon-plugin/gradle.properties
properties: version
- name: Create Tag
run: |
git config user.name github-actions
git config user.email [email protected]
git tag -a ${{ steps.current_version.outputs.version }} -m ${{ steps.current_version.outputs.version }}
git push origin ${{ steps.current_version.outputs.version }}
- name: Create Release
uses: ncipollo/release-action@v1
with:
tag: ${{ steps.current_version.outputs.version }}
generateReleaseNotes: true
makeLatest: true
- name: Gradle Publish
env:
GRADLE_PLUGIN_PUBLISH_KEY: ${{ secrets.GRADLE_PLUGIN_PUBLISH_KEY }}
GRADLE_PLUGIN_PUBLISH_SECRET: ${{ secrets.GRADLE_PLUGIN_PUBLISH_SECRET }}
run: ./gradlew publishPlugins
- id: next_version
uses: christian-draeger/[email protected]
with:
current-version: ${{ steps.current_version.outputs.version }}
version-fragment: bug
- name: Bump Version
uses: christian-draeger/[email protected]
with:
path: gordon-plugin/gradle.properties
property: version
value: ${{ steps.next_version.outputs.next-version }}
- name: Commit Version Bump
run: |
git config user.name github-actions
git config user.email [email protected]
git add gordon-plugin/gradle.properties
git commit -m "Bump version to ${{ steps.next_version.outputs.next-version }}"
git push