Skip to content

Commit

Permalink
Update workflow for build
Browse files Browse the repository at this point in the history
!Drop this commit when rebasing on dev branch!
  • Loading branch information
OptimumCode committed May 31, 2023
1 parent abd736e commit d3495cb
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 165 deletions.
48 changes: 0 additions & 48 deletions .github/workflows/dev-docker-publish.yml

This file was deleted.

30 changes: 30 additions & 0 deletions .github/workflows/dev-java-publish-sonatype-and-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Dev build and publish Java distributions to sonatype snapshot repository

on:
push:
branches-ignore:
- master
- version-*
- dependabot*
paths-ignore:
- README.md
# paths:
# - gradle.properties

jobs:
build-job:
uses: th2-net/.github/.github/workflows/compound-java-dev.yml@main
with:
build-target: 'Sonatype,Docker'
runsOn: ubuntu-latest
gradleVersion: '7'
docker-username: ${{ github.actor }}
secrets:
sonatypeUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
sonatypePassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
sonatypeSigningKey: ${{ secrets.SONATYPE_GPG_ARMORED_KEY }}
sonatypeSigningPassword: ${{ secrets.SONATYPE_SIGNING_PASSWORD }}
docker-password: ${{ secrets.GITHUB_TOKEN }}



53 changes: 0 additions & 53 deletions .github/workflows/dev-java-publish-sonatype.yml

This file was deleted.

37 changes: 0 additions & 37 deletions .github/workflows/docker-publish.yml

This file was deleted.

24 changes: 24 additions & 0 deletions .github/workflows/java-publish-sonatype-and-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Build and release Java distributions to sonatype.

on:
push:
branches:
- master
- version-*
paths:
- gradle.properties

jobs:
build:
uses: th2-net/.github/.github/workflows/compound-java.yml@main
with:
build-target: 'Sonatype,Docker'
runsOn: ubuntu-latest
gradleVersion: '7'
docker-username: ${{ github.actor }}
secrets:
sonatypeUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
sonatypePassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
sonatypeSigningKey: ${{ secrets.SONATYPE_GPG_ARMORED_KEY }}
sonatypeSigningPassword: ${{ secrets.SONATYPE_SIGNING_PASSWORD }}
docker-password: ${{ secrets.GITHUB_TOKEN }}
27 changes: 0 additions & 27 deletions .github/workflows/java-publish-sonatype.yml

This file was deleted.

0 comments on commit d3495cb

Please sign in to comment.