Skip to content

Commit

Permalink
Ignore docs for snapshot publish, apply SNAPSHOT classifier
Browse files Browse the repository at this point in the history
  • Loading branch information
falkreon committed Jul 18, 2024
1 parent c54c8a0 commit d71c29e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/publish_snapshot.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Build and publish snapshot

on: [push]
on:
push:
paths-ignore:
- 'docs'

jobs:
publish:
Expand All @@ -21,4 +24,4 @@ jobs:
- name: Publish with Gradle
uses: gradle/[email protected]
with:
arguments: clean build publish --info --stacktrace -PsleepingUsername=${{secrets.SLEEPING_USERNAME}} -PsleepingPassword=${{secrets.SLEEPING_PASSWORD}}
arguments: clean build publish --info --stacktrace -PsleepingUsername=${{secrets.SLEEPING_USERNAME}} -PsleepingPassword=${{secrets.SLEEPING_PASSWORD}} -PversionSuffix=SNAPSHOT
7 changes: 4 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,17 @@ tasks.withType(org.gradle.api.tasks.javadoc.Javadoc) {
}

def versionSuffix = ''
if (project.hasProperty("versionSuffix")) {
versionSuffix += '-'+project.versionSuffix
}
if (System.env.BUILD_NUMBER) {
versionSuffix = '-'+System.env.BUILD_NUMBER;
versionSuffix += '-'+System.env.BUILD_NUMBER;
}

tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}



publishing {
publications {
mavenPrimary(MavenPublication) {
Expand Down

0 comments on commit d71c29e

Please sign in to comment.