[Build] Update publish scripts
This commit is contained in:
1 parent
cfd25603f0
commit
adf9d5fe4e
2 files changed
+27
-36
No files matched your search
@@ -1,11 +1,8 @@
|
|||||||
name: Publish to Maven
|
name: Publish to Maven
|
||||||
on: workflow_dispatch
|
on: workflow_dispatch
|
||||||
jobs:
|
jobs:
|
||||||
publish-modules:
|
publish-to-maven:
|
||||||
strategy:
|
name: Publish to Maven
|
||||||
matrix:
|
|
||||||
module: [imgui-app, imgui-lwjgl3, imgui-binding]
|
|
||||||
name: Publish Module (${{ matrix.module }})
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
NEXUS_UPD_ID: ${{ secrets.RELEASE_NEXUS_UPD_ID }}
|
NEXUS_UPD_ID: ${{ secrets.RELEASE_NEXUS_UPD_ID }}
|
||||||
@@ -15,39 +12,16 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Set up Repository
|
||||||
|
run: |
|
||||||
|
chmod +x ./buildSrc/scripts/release.sh
|
||||||
|
chmod +x ./gradlew
|
||||||
|
|
||||||
- name: Set up Java 8
|
- name: Set up Java 8
|
||||||
uses: actions/setup-java@v1
|
uses: actions/setup-java@v1
|
||||||
with:
|
with:
|
||||||
java-version: 8
|
java-version: 8
|
||||||
|
|
||||||
- name: Publish
|
- name: Release
|
||||||
uses: eskatos/gradle-command-action@v1
|
run: ./buildSrc/scripts/release.sh
|
||||||
with:
|
|
||||||
arguments: ${{ format(':{0}:publishMavenJavaPublicationToMavenCentralRepository', matrix.module) }}
|
|
||||||
|
|
||||||
publish-natives:
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
type: [win, linux, mac]
|
|
||||||
freetype: [true, false]
|
|
||||||
name: Publish Native (type=${{ matrix.type }}, freetype=${{ matrix.freetype }})
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
env:
|
|
||||||
NEXUS_UPD_ID: ${{ secrets.RELEASE_NEXUS_UPD_ID }}
|
|
||||||
NEXUS_UPD_PASS: ${{ secrets.RELEASE_NEXUS_UPD_PASS }}
|
|
||||||
SIGNING_KEY_ID: ${{ secrets.RELEASE_SIGNING_KEY_ID }}
|
|
||||||
SIGNING_KEY: ${{ secrets.RELEASE_SIGNING_KEY }}
|
|
||||||
steps:
|
|
||||||
- name: Checkout Repository
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: Set up Java 8
|
|
||||||
uses: actions/setup-java@v1
|
|
||||||
with:
|
|
||||||
java-version: 8
|
|
||||||
|
|
||||||
- name: Publish
|
|
||||||
uses: eskatos/gradle-command-action@v1
|
|
||||||
with:
|
|
||||||
arguments: ${{ format(':imgui-binding-natives:publishMavenJavaPublicationToMavenCentralRepository -PdeployType={0} -Pfreetype={1}', matrix.type, matrix.freetype) }}
|
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
BASEDIR=$(dirname "$0")
|
||||||
|
cd $BASEDIR/../.. || exit
|
||||||
|
|
||||||
|
echo [Publishing Modules...]
|
||||||
|
./gradlew :imgui-app:publishMavenJavaPublicationToMavenCentralRepository
|
||||||
|
./gradlew :imgui-lwjgl3:publishMavenJavaPublicationToMavenCentralRepository
|
||||||
|
./gradlew :imgui-binding:publishMavenJavaPublicationToMavenCentralRepository
|
||||||
|
|
||||||
|
echo [Publishing Native...]
|
||||||
|
./gradlew :imgui-binding-natives:publishMavenJavaPublicationToMavenCentralRepository -PdeployType=win -Pfreetype=true
|
||||||
|
./gradlew :imgui-binding-natives:publishMavenJavaPublicationToMavenCentralRepository -PdeployType=win -Pfreetype=false
|
||||||
|
./gradlew :imgui-binding-natives:publishMavenJavaPublicationToMavenCentralRepository -PdeployType=linux -Pfreetype=true
|
||||||
|
./gradlew :imgui-binding-natives:publishMavenJavaPublicationToMavenCentralRepository -PdeployType=linux -Pfreetype=false
|
||||||
|
./gradlew :imgui-binding-natives:publishMavenJavaPublicationToMavenCentralRepository -PdeployType=mac -Pfreetype=true
|
||||||
|
./gradlew :imgui-binding-natives:publishMavenJavaPublicationToMavenCentralRepository -PdeployType=mac -Pfreetype=false
|
||||||
Reference in new issue
Block a user