Skip to content

Commit

Permalink
Improving release.yml (#2)
Browse files Browse the repository at this point in the history
* Improving release.yml

* Add installation instructions and fix release creation
  • Loading branch information
junkfactory authored Aug 3, 2024
1 parent 82a928d commit f2ef10c
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 5 deletions.
17 changes: 17 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Dependabot configuration:
# https://docs.github.com/en/free-pro-team@latest/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
# Maintain dependencies for Gradle dependencies
- package-ecosystem: "gradle"
directory: "/"
target-branch: "next"
schedule:
interval: "daily"
# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
target-branch: "next"
schedule:
interval: "daily"
18 changes: 15 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,34 @@ jobs:
# Check out current repository
- name: Fetch Sources
uses: actions/checkout@v4
with:
ref: ${{ github.event.release.tag_name }}

# Setup Java 11 environment for the next steps
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: zulu
java-version: 17
cache: gradle

# Setup Gradle
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
with:
gradle-home-cache-cleanup: true

- name: Build Plugin
run: |
./gradlew buildPlugin --no-daemon
VERSION=${{ github.ref_name }}
./gradlew buildPlugin -PpluginVersion="${VERSION:1}"
- name: Publish Release
env:
DIST_DIR: "./build/distributions"
run: |
VERSION=${{ github.ref_name }}
PROJECT_NAME="$(basename ${{ github.repository }})"
PKG="$PROJECT_NAME-${{ github.ref_name }}.zip"
PKG="$PROJECT_NAME-${VERSION:1}.zip"
ls -l "$DIST_DIR"
mv "$DIST_DIR/$PROJECT_NAME-snapshot.zip" "$DIST_DIR/$PKG"
gh release create ${{ github.ref_name }} "$DIST_DIR/$PKG" --generate-notes
1 change: 0 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@
## [Unreleased]

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

9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,11 @@ record Address(String street, String city, String state, String country) {
}
}
}
```
```

## Installation

1. Download plugin zip file from [Releases](https://github.com/junkfactory/java-inner-builder/releases)
2. Open IntelliJ IDEA, go to `File -> Settings -> Plugins`
3. Click on the gear icon and select `Install Plugin from Disk...`
4. Select the downloaded zip file and click `OK`

0 comments on commit f2ef10c

Please sign in to comment.