diff --git a/.github/workflows/api-build.yml b/.github/workflows/api-build.yml deleted file mode 100644 index 306fda10..00000000 --- a/.github/workflows/api-build.yml +++ /dev/null @@ -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 diff --git a/.github/workflows/api-publish.yml b/.github/workflows/api-publish.yml deleted file mode 100644 index 43c48fc0..00000000 --- a/.github/workflows/api-publish.yml +++ /dev/null @@ -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 diff --git a/.github/workflows/core-build.yml b/.github/workflows/build.yml similarity index 90% rename from .github/workflows/core-build.yml rename to .github/workflows/build.yml index 6ee97cc0..ae190104 100644 --- a/.github/workflows/core-build.yml +++ b/.github/workflows/build.yml @@ -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 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 00000000..c47806fa --- /dev/null +++ b/.github/workflows/publish.yml @@ -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 }}