Skip to content

Commit

Permalink
Move to GH Actions and bump to J17
Browse files Browse the repository at this point in the history
  • Loading branch information
Matyrobbrt committed Oct 30, 2023
1 parent 3bd71f4 commit be49550
Show file tree
Hide file tree
Showing 10 changed files with 90 additions and 293 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/build-prs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Build and test PRs

on:
pull_request:
types:
- synchronize
- opened
- ready_for_review
- reopened

jobs:
jdk17:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup JDK 17
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'temurin'

- name: Build with Gradle
uses: gradle/gradle-build-action@v2
with:
arguments: build :bus-jmh:jmh
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Release

on:
push:
branches: [ "main" ]

permissions:
contents: read
statuses: write

jobs:
build:
uses: neoforged/actions/.github/workflows/gradle-publish.yml@main
with:
java: 17
pre_gradle_tasks: ':bus-test:test'
gradle_tasks: ':publish closeAndReleaseSonatypeStagingRepository'
secrets:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}

MAVEN_USER: ${{ secrets.MAVEN_USER }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}

SONATYPE_USER: ${{ secrets.SONATYPE_USER }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}

GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
GPG_KEY_PASSWORD: ${{ secrets.GPG_KEY_PASSWORD }}
16 changes: 0 additions & 16 deletions .teamcity/patches/buildTypes/eventbus__Build.kts

This file was deleted.

16 changes: 0 additions & 16 deletions .teamcity/patches/buildTypes/eventbus__PullRequests.kts

This file was deleted.

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

This file was deleted.

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

This file was deleted.

83 changes: 0 additions & 83 deletions Jenkinsfile

This file was deleted.

Loading

0 comments on commit be49550

Please sign in to comment.