Skip to content

Commit

Permalink
Create Build and Publish Release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
gabber235 committed Nov 9, 2024
1 parent ebf44f8 commit f566ed8
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/build-and-publish-release-jars.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Build and Publish Release Jars

on:
workflow_dispatch:

jobs:
build-publish-release:
runs-on: ubuntu-latest
concurrency:
group: build-publish-release
cancel-in-progress: true
steps:
- uses: actions/checkout@v3
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 21
- name: Build Engine
uses: ./.github/actions/build-engine
# ----------------------------------------------------------------------------------------------------
- name: Build Extensions
uses: gradle/gradle-build-action@v2
with:
arguments: buildRelease --scan
build-root-directory: ./extensions
- name: Upload Jars as Artifacts
uses: actions/upload-artifact@v3
with:
name: Typewriter-Releases
path: |
engine/engine-paper/build/libs/Typewriter.jar
extensions/**/build/libs/*.jar
retention-days: 1
# ----------------------------------------------------------------------------------------------------
- name: Publish Engine to Beta Maven Repository
uses: gradle/gradle-build-action@v2
with:
arguments: publishAllPublicationsToTypewriterReleasesRepository -PTypewriterReleasesUsername=${{ secrets.MAVEN_USERNAME }} -PTypewriterReleasesPassword=${{ secrets.MAVEN_PASSWORD }} --scan
build-root-directory: ./engine
- name: Publish All Extensions to Beta Maven Repository
uses: gradle/gradle-build-action@v2
with:
arguments: publishAllPublicationsToTypewriterReleasesRepository -PTypewriterReleasesUsername=${{ secrets.MAVEN_USERNAME }} -PTypewriterReleasesPassword=${{ secrets.MAVEN_PASSWORD }} --scan
build-root-directory: ./extensions
- name: Publish Module-Plugin to Beta Maven Repository
uses: gradle/gradle-build-action@v2
with:
arguments: publishAllPublicationsToTypewriterReleasesRepository -PTypewriterReleasesUsername=${{ secrets.MAVEN_USERNAME }} -PTypewriterReleasesPassword=${{ secrets.MAVEN_PASSWORD }} --scan
build-root-directory: ./module-plugin
# ----------------------------------------------------------------------------------------------------

0 comments on commit f566ed8

Please sign in to comment.