Skip to content

Commit db67865

Browse files
committed
a new try
1 parent 3e45834 commit db67865

File tree

1 file changed

+7
-18
lines changed

1 file changed

+7
-18
lines changed

.github/workflows/maven-publish.yml

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -14,30 +14,19 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- name: Checkout Repository
17+
- name: Checkout
1818
uses: actions/checkout@v4
1919

20-
- name: Set up JDK 8 with GitHub Packages
20+
- name: Setup JDK 8
2121
uses: actions/setup-java@v3
2222
with:
23-
distribution: 'temurin'
24-
java-version: '8'
23+
distribution: temurin
24+
java-version: 8
2525
server-id: github
2626
settings-path: ${{ github.workspace }}
27-
cache: maven # Enables dependency caching
27+
cache: maven
2828

29-
- name: Cache Maven packages
30-
uses: actions/cache@v3
31-
with:
32-
path: ~/.m2/repository
33-
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
34-
restore-keys: |
35-
${{ runner.os }}-maven-
36-
37-
- name: Build with Maven
38-
run: mvn clean package -DskipTests
39-
40-
- name: Publish to GitHub Packages
41-
run: mvn deploy -DskipTests --settings ${{ github.workspace }}/settings.xml
29+
- name: Deploy Jar Only (no sources, docs)
30+
run: mvn deploy -DaltDeploymentRepository=github::default::https://maven.pkg.github.com/payment-components/rest-sdk-wrapper --settings ${{ github.workspace }}/settings.xml
4231
env:
4332
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)