Skip to content

Commit f2ef10c

Browse files
authored
Improving release.yml (#2)
* Improving release.yml * Add installation instructions and fix release creation
1 parent 82a928d commit f2ef10c

File tree

4 files changed

+40
-5
lines changed

4 files changed

+40
-5
lines changed

.github/dependabot.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Dependabot configuration:
2+
# https://docs.github.com/en/free-pro-team@latest/github/administering-a-repository/configuration-options-for-dependency-updates
3+
4+
version: 2
5+
updates:
6+
# Maintain dependencies for Gradle dependencies
7+
- package-ecosystem: "gradle"
8+
directory: "/"
9+
target-branch: "next"
10+
schedule:
11+
interval: "daily"
12+
# Maintain dependencies for GitHub Actions
13+
- package-ecosystem: "github-actions"
14+
directory: "/"
15+
target-branch: "next"
16+
schedule:
17+
interval: "daily"

.github/workflows/release.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,34 @@ jobs:
1818
# Check out current repository
1919
- name: Fetch Sources
2020
uses: actions/checkout@v4
21+
with:
22+
ref: ${{ github.event.release.tag_name }}
23+
2124
# Setup Java 11 environment for the next steps
2225
- name: Setup Java
2326
uses: actions/setup-java@v4
2427
with:
2528
distribution: zulu
2629
java-version: 17
2730
cache: gradle
31+
32+
# Setup Gradle
33+
- name: Setup Gradle
34+
uses: gradle/actions/setup-gradle@v3
35+
with:
36+
gradle-home-cache-cleanup: true
37+
2838
- name: Build Plugin
2939
run: |
30-
./gradlew buildPlugin --no-daemon
40+
VERSION=${{ github.ref_name }}
41+
./gradlew buildPlugin -PpluginVersion="${VERSION:1}"
42+
3143
- name: Publish Release
3244
env:
3345
DIST_DIR: "./build/distributions"
3446
run: |
47+
VERSION=${{ github.ref_name }}
3548
PROJECT_NAME="$(basename ${{ github.repository }})"
36-
PKG="$PROJECT_NAME-${{ github.ref_name }}.zip"
49+
PKG="$PROJECT_NAME-${VERSION:1}.zip"
3750
ls -l "$DIST_DIR"
38-
mv "$DIST_DIR/$PROJECT_NAME-snapshot.zip" "$DIST_DIR/$PKG"
3951
gh release create ${{ github.ref_name }} "$DIST_DIR/$PKG" --generate-notes

CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@
55
## [Unreleased]
66

77
- See [Releases](https://github.com/junkfactory/java-inner-builder/releases) for full changelog
8-

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,4 +105,11 @@ record Address(String street, String city, String state, String country) {
105105
}
106106
}
107107
}
108-
```
108+
```
109+
110+
## Installation
111+
112+
1. Download plugin zip file from [Releases](https://github.com/junkfactory/java-inner-builder/releases)
113+
2. Open IntelliJ IDEA, go to `File -> Settings -> Plugins`
114+
3. Click on the gear icon and select `Install Plugin from Disk...`
115+
4. Select the downloaded zip file and click `OK`

0 commit comments

Comments
 (0)