Skip to content

Commit

Permalink
Release with actions (#383)
Browse files Browse the repository at this point in the history
  • Loading branch information
Matyrobbrt authored Dec 16, 2023
1 parent 5f83058 commit 5a20aad
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 240 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
- opened
- ready_for_review
- reopened
push:
branches:
- 'feature/**'
workflow_dispatch:

jobs:
build:
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Release

on:
push:
branches:
- '1.*'

permissions:
contents: read
statuses: write

jobs:
release:
uses: neoforged/actions/.github/workflows/gradle-publish.yml@main
with:
java: 17
pre_gradle_tasks: setup
gradle_tasks: publish
version_labels: -beta, -stable

# We only publish the main repository. This way we avoid publishing Kits
if: ${{ github.repository == 'neoforged/NeoForge' }}
secrets:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
MAVEN_USER: ${{ secrets.MAVEN_USER }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
GPG_SUBKEY: ${{ secrets.GPG_SUBKEY }}
GPG_SUBKEY_ID: ${{ secrets.GPG_SUBKEY_ID }}
GPG_SUBKEY_PASSWORD: ${{ secrets.GPG_SUBKEY_PASSWORD }}
4 changes: 4 additions & 0 deletions .github/workflows/test-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
- opened
- ready_for_review
- reopened
push:
branches:
- 'feature/**'
workflow_dispatch:

jobs:
build:
Expand Down

This file was deleted.

104 changes: 0 additions & 104 deletions .teamcity/pom.xml

This file was deleted.

106 changes: 0 additions & 106 deletions .teamcity/settings.kts

This file was deleted.

2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id 'net.neoforged.gradleutils' version '3.0.0-alpha.1' apply false
id 'net.neoforged.gradleutils' version '3.0.0-alpha.8' apply false
id 'com.diffplug.spotless' version '6.22.0' apply false
id 'net.neoforged.licenser' version '0.7.2' apply false
}
Expand Down
2 changes: 2 additions & 0 deletions projects/neoforge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ plugins {
id 'maven-publish'
}

rootProject.gradleutils.setupSigning(project: project, signAllPublications: true)

dynamicProject {
runtime("${project.minecraft_version}-${project.neoform_version}",
rootProject.layout.projectDirectory.dir('patches'),
Expand Down

0 comments on commit 5a20aad

Please sign in to comment.