Skip to content

Commit 5e96f41

Browse files
committed
Test Publishing using Gradle
1 parent aed9929 commit 5e96f41

File tree

2 files changed

+35
-3
lines changed

2 files changed

+35
-3
lines changed

.github/workflows/test-architecture.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: Test architecture option
22

33
on:
4-
push:
5-
branches:
6-
- sapMachine
4+
# push:
5+
# branches:
6+
# - sapMachine
77

88
workflow_dispatch:
99

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Test PublishinG to GPR using Gradle
2+
3+
on:
4+
push:
5+
branches:
6+
- sapMachine
7+
8+
workflow_dispatch:
9+
10+
jobs:
11+
test:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v4
17+
18+
- name: Set up Java
19+
uses: Shegox/setup-java@main
20+
with:
21+
distribution: 'sapmachine'
22+
java-version: '11'
23+
24+
- name: Build with Gradle
25+
run: gradle build
26+
27+
- name: Publish to GitHub Packages
28+
run: gradle publish
29+
env:
30+
USERNAME: ${{ github.actor }}
31+
PASSWORD: ${{ secrets.GITHUB_TOKEN }}
32+

0 commit comments

Comments
 (0)