enable dev branch publishing
This commit is contained in:
parent
4ed5482b63
commit
c241f6b1fe
@ -1,11 +1,11 @@
|
||||
name: Test
|
||||
name: Publish
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
branches: [master, dev]
|
||||
|
||||
jobs:
|
||||
Gradle-Test:
|
||||
Gradle-Publish:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
@ -34,7 +34,14 @@ jobs:
|
||||
restore-keys: |
|
||||
${{ runner.os }}-gradle-
|
||||
|
||||
- name: Publish
|
||||
- name: Publish Release
|
||||
if: ${{ github.ref == '/refs/heads/master' }}
|
||||
env:
|
||||
GITEA_TOKEN: ${{ secrets.PUBLISH_PACKAGE_TOKEN }}
|
||||
run: chmod +x gradlew; ./gradlew publishAllPublicationsToGiteaRepository -Prelease
|
||||
|
||||
- name: Publish Dev
|
||||
if: ${{ github.ref == '/refs/heads/dev' }}
|
||||
env:
|
||||
GITEA_TOKEN: ${{ secrets.PUBLISH_PACKAGE_TOKEN }}
|
||||
run: chmod +x gradlew; ./gradlew publishAllPublicationsToGiteaRepository
|
@ -8,6 +8,7 @@ allprojects {
|
||||
group = "net.tomatentum.Marinara"
|
||||
version = "1.0.0-RC1" + (if (!project.hasProperty("release")) ("-" + getGitHash()) else "")
|
||||
description = "A simple but powerful, library-agnostic Discord Interaction Wrapper."
|
||||
|
||||
}
|
||||
|
||||
subprojects {
|
||||
@ -18,6 +19,8 @@ subprojects {
|
||||
publishing {
|
||||
publications {
|
||||
create<MavenPublication>("maven") {
|
||||
if (!project.hasProperty("release"))
|
||||
artifactId = project.getName() + "-dev"
|
||||
from(components["java"])
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user