Skip to content

Commit

Permalink
Submit Dependency Graph (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
turikhay authored Jan 20, 2024
1 parent 145776f commit 6f39abe
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ on:
description: Path to the jar artifact
value: ${{ jobs.build.outputs.artifact }}

permissions:
contents: write

jobs:
build:
name: Gradle build
Expand All @@ -23,25 +26,25 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
dependency-graph: generate-and-submit
- name: Determine target Spigot version
id: target
run: |
TARGET=${{ inputs.spigot-target }}
[[ -z "$TARGET" ]] && TARGET=$(tail -n1 VERSIONS.txt)
echo "spigot-version=$TARGET" >> $GITHUB_OUTPUT
- uses: gradle/gradle-build-action@v2
with:
arguments: |
build
-Pversion=${{ inputs.version }}
-Pspigot_version=${{ steps.target.outputs.spigot-version }}
-PprotocolLib_version=4.2.1
- name: Run the build
run: |
./gradlew \
build \
-Pversion=${{ inputs.version }} \
-Pspigot_version=${{ steps.target.outputs.spigot-version }} \
-PprotocolLib_version=4.2.1
- name: Force original path preservation (for upload-artifact@v3)
run: touch .empty
- uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 6f39abe

Please sign in to comment.