chore(deps): update gradle/actions action to v4.1.0 #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build with Gradle | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
workflow_dispatch: | |
concurrency: | |
group: build-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
gradle: | |
strategy: | |
matrix: | |
#os: [ubuntu-latest, macos-latest, windows-latest] | |
os: [ubuntu-latest] | |
# others = slow | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1 | |
with: | |
distribution: temurin | |
java-version: 11 | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@d156388eb19639ec20ade50009f3d199ce1e2808 # v4.1.0 | |
- name: Execute Gradle build | |
run: ./gradlew build | |
- name: Build shadowJar | |
run: ./gradlew shadowJar | |
- name: Upload shadowJar | |
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 | |
with: | |
name: pickpocket-helper-shadow | |
path: build/libs/pickpocket-helper-*-all.jar | |
create-release: | |
needs: gradle | |
runs-on: ubuntu-latest | |
if: (github.event_name == 'push' && github.ref == 'refs/heads/main') | |
steps: | |
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8 | |
with: | |
name: pickpocket-helper-shadow | |
path: release-artifacts/ | |
- name: Create release | |
uses: ncipollo/release-action@2c591bcc8ecdcd2db72b97d6147f871fcd833ba5 # v1.14.0 | |
with: | |
removeArtifacts: true | |
allowUpdates: true | |
artifactErrorsFailBuild: true | |
artifacts: "release-artifacts/*" | |
body: | | |
This release should only be used if testing one of the features that have not made it to the plugin hub yet. | |
Note: To use this build, you must run from terminal (or command prompt): `java -ea -jar pickpocket-helper-1.x.x-all.jar` (be sure to specify the correct version and path to the file). Also, very recent java versions may require [additional VM options](https://github.com/runelite/runelite/wiki/Building-with-IntelliJ-IDEA#jdks-16). | |
Latest Change: | |
${{ github.event.head_commit.message }} | |
prerelease: true | |
name: Nightly Release | |
tag: nightly-build |