Release fixes

This commit is contained in:
Christopher Schnick 2022-08-12 17:51:28 +02:00
parent 3db71678af
commit 4e2d08278f
4 changed files with 40 additions and 61 deletions

View file

@ -1,31 +0,0 @@
name: API Build
on: []
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [
ubuntu-20.04,
# macos-10.15,
windows-2022
]
fail-fast: false
name: ${{ matrix.os }}
steps:
- name: Git checkout
uses: actions/checkout@v2
- name: Set up GraalVM
uses: graalvm/setup-graalvm@v1
with:
version: '21.3.0'
java-version: '17'
- name: Verify Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
- name: Execute build
run: ./gradlew :api:clean :api:build

View file

@ -1,28 +0,0 @@
name: API Publish
on: []
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Git checkout
uses: actions/checkout@v2
- name: Set up GraalVM
uses: graalvm/setup-graalvm@v1
with:
version: '21.3.0'
java-version: '17'
- name: Verify Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
- name: Execute build
run: ./gradlew :api:clean :api:build
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: api
path: build/libs

View file

@ -1,4 +1,4 @@
name: Core Build
name: Build
on: [push, pull_request]
@ -30,4 +30,4 @@ jobs:
uses: gradle/wrapper-validation-action@v1
- name: Execute build
run: ./gradlew :core:clean :core:build
run: ./gradlew clean build

38
.github/workflows/publish.yml vendored Normal file
View file

@ -0,0 +1,38 @@
name: Publish
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Git checkout
uses: actions/checkout@v2
with:
submodules: 'true'
- name: Set up GraalVM
uses: graalvm/setup-graalvm@v1
with:
version: '21.3.0'
java-version: '17'
- name: Verify Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
- name: Publish
run: ./gradlew publish
env:
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }}
GPG_KEY: ${{ secrets.GPG_KEY }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
- name: JReleaser
run: ./gradlew jreleaserRelease jreleaserAnnounce
env:
JRELEASER_GITHUB_TOKEN: ${{ secrets.JRELEASER_GITHUB_TOKEN }}
JRELEASER_DISCORD_WEBHOOK: ${{ secrets.JRELEASER_DISCORD_WEBHOOK }}