diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 0896f29c7..393822ea2 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -35,6 +35,9 @@ jobs: - name: Test run: ./gradlew --info -s check + - name: Publish artifacts + uses: neoforged/action-pr-publishing/upload@v1 + # Always upload test results - name: Merge Test Reports if: success() || failure() diff --git a/.github/workflows/publish-prs.yml b/.github/workflows/publish-prs.yml new file mode 100644 index 000000000..213ef97d9 --- /dev/null +++ b/.github/workflows/publish-prs.yml @@ -0,0 +1,31 @@ +# File generated by the GradleUtils `setupGitHubActionsWorkflows` task, avoid modifying it directly +# The template can be found at https://github.com/neoforged/GradleUtils/blob/44d9e09cfa2c6032b84ac40495ea5ab7d64fe521/src/actionsTemplate/resources/.github/workflows/publish-prs.yml + +name: Publish PRs to GitHub Packages + +on: + workflow_run: + workflows: ['Build Pull Request'] + types: + - completed + issue_comment: + types: + - edited + pull_request_target: + types: + - opened + +permissions: + packages: write + +jobs: + publish-prs: + if: true + uses: neoforged/actions/.github/workflows/publish-prs.yml@main + with: + artifact_base_path: net/neoforged/gradle/ + uploader_workflow_name: 'Build Pull Request' + secrets: + PR_PUBLISHING_GH_APP_ID: ${{ secrets.PR_PUBLISHING_GH_APP_ID }} + PR_PUBLISHING_GH_APP_KEY: ${{ secrets.PR_PUBLISHING_GH_APP_KEY }} + diff --git a/build.gradle b/build.gradle index 1830e7ebd..5c094f3d7 100644 --- a/build.gradle +++ b/build.gradle @@ -2,7 +2,7 @@ plugins { id 'eclipse' id 'maven-publish' id 'org.cadixdev.licenser' version '0.6.1' - id 'net.neoforged.gradleutils' version '3.0.0-alpha.1' + id 'net.neoforged.gradleutils' version '3.0.0-alpha.10' } version = gradleutils.version.toString() @@ -219,4 +219,4 @@ subprojects.forEach { subProject -> } } } -} \ No newline at end of file +} diff --git a/settings.gradle b/settings.gradle index d157ae312..ccfffe2be 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,12 +1,11 @@ pluginManagement { repositories { gradlePluginPortal() - maven { url = 'https://maven.neoforged.net/releases' } } } plugins { - id 'org.gradle.toolchains.foojay-resolver-convention' version '0.4.0' + id 'org.gradle.toolchains.foojay-resolver-convention' version '0.7.0' } rootProject.name = 'NeoGradle' @@ -29,4 +28,4 @@ subProject 'dsl-mixin' void subProject(final String name) { include name project(":$name").projectDir = new File(rootDir, "${String.join('/', name.split('-'))}") -} \ No newline at end of file +}