Skip to content

Commit 59a8c11

Browse files
authored
final fix
1 parent 86033e7 commit 59a8c11

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

β€Ž.github/workflows/pipeline.yml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
jobs:
1010
bump:
1111
name: Get And Bump SemVer πŸ‘Š
12-
runs-on: ubuntu-latest
12+
runs-on: [self-hosted, Linux, X64]
1313
outputs:
1414
pom_version: ${{ steps.set_version.outputs.pom_version }}
1515
major_version: ${{ steps.set_version.outputs.major_version }}
@@ -49,7 +49,7 @@ jobs:
4949
echo "build_version=${BUILD_VERSION}" >> $GITHUB_OUTPUT
5050
build:
5151
name: Build and publish to Maven Central πŸ”¨
52-
runs-on: ubuntu-latest
52+
runs-on: [self-hosted, Linux, X64]
5353
env:
5454
MAVEN_ARGS: -Dmaven.test.skip=true
5555
outputs:
@@ -111,8 +111,10 @@ jobs:
111111
- name: Update pom.xml version πŸ’Ύ
112112
run: |
113113
mvn versions:set -DnewVersion=${{ needs.bump.outputs.major_version }}.${{ needs.bump.outputs.minor_version }}.${{ needs.bump.outputs.build_version }} -DgenerateBackupPoms=false
114-
- name: Build and install with Maven πŸ”¨
115-
run: mvn clean deploy --batch-mode --update-snapshots -DreleaseSonatype=true -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} $MAVEN_ARGS
114+
- name: Build and publish with Maven πŸ”¨
115+
env:
116+
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
117+
run: mvn clean deploy --batch-mode --update-snapshots -DreleaseSonatype=true $MAVEN_ARGS
116118
- name: List signed files 🐞
117119
run: |
118120
echo "πŸ“¦ Contents of target/:"
@@ -122,13 +124,6 @@ jobs:
122124
find target/ -type f -name "*.asc" -exec echo "βœ” Found:" {} \;
123125
echo ""
124126
echo "❓ Missing POM signature?" && test ! -f target/*pom.asc && echo "❌ No POM signature found!" || echo "βœ… POM is signed."
125-
- name: Publish to Maven Central
126-
run: mvn central-publishing:publish $MAVEN_ARGS
127-
env:
128-
MAVEN_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
129-
MAVEN_CENTRAL_TOKEN: ${{ secrets.SONATYPE_PASSWORD }}
130-
MAVEN_GPG_PRIVATE_KEY: ${{ secrets.GPG_SECRET_KEY }}
131-
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
132127
- name: Upload build artifacts ⬆️
133128
uses: actions/upload-artifact@v4
134129
with:

0 commit comments

Comments
Β (0)