Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
209 commits
Select commit Hold shift + click to select a range
e62cd31
first changes to release process
Jonas-Isr Jul 1, 2025
1e18371
fix link in PR message
Jonas-Isr Jul 1, 2025
af4b3cc
...
Jonas-Isr Jul 1, 2025
5a99ee3
stop notification
Jonas-Isr Jul 1, 2025
b82bed8
no blackduck 🦆
Jonas-Isr Jul 1, 2025
6b49c6a
test mvn args
Jonas-Isr Jul 1, 2025
88dc335
re-introduce mvn arg
Jonas-Isr Jul 1, 2025
b603fce
"fix" javadoc.overview.html
Jonas-Isr Jul 1, 2025
b4ddae3
delete javadoc related mvn args
Jonas-Isr Jul 1, 2025
19ec3e7
delete javadoc related mvn args
Jonas-Isr Jul 1, 2025
a80ae28
delete unit tests from Ci to save time
Jonas-Isr Jul 1, 2025
1ddb579
re-add some docs
Jonas-Isr Jul 1, 2025
56c18ec
less docs
Jonas-Isr Jul 1, 2025
ddc19cd
remove code ql to save time
Jonas-Isr Jul 2, 2025
cc916c8
remove javadocs creation
Jonas-Isr Jul 2, 2025
bdcbabc
exclude blackduck from CI check
Jonas-Isr Jul 2, 2025
d2e80da
skip spotbugs to save time
Jonas-Isr Jul 2, 2025
5aab930
remove prats from perform-release.yml that only care about docs and r…
Jonas-Isr Jul 2, 2025
04e2ae3
remove workflow-succeeded check (it fails since I skip blackduck etc …
Jonas-Isr Jul 2, 2025
9f88aaa
remove (last?) usage of docs in perform release
Jonas-Isr Jul 2, 2025
8d0aeb6
add url for maven distribution management
Jonas-Isr Jul 2, 2025
004a4e2
small fix
Jonas-Isr Jul 2, 2025
f1e8d27
show mvn error stacktrace
Jonas-Isr Jul 2, 2025
c2de848
add maven-gpg-plugin
Jonas-Isr Jul 2, 2025
d5b62e2
fix(?) sortpom failure
Jonas-Isr Jul 2, 2025
3ca48ac
add new central url to perform-release.yml
Jonas-Isr Jul 3, 2025
7a38ea5
add gpg and central credentials to deploy step
Jonas-Isr Jul 3, 2025
171bdcc
try different user-pw
Jonas-Isr Jul 3, 2025
54112b6
remove spotbugs to save time in CI
Jonas-Isr Jul 3, 2025
231ec1e
use central.sonatype.com/api/v1/publisher/upload
Jonas-Isr Jul 3, 2025
53634d1
remove settings.xml
Jonas-Isr Jul 3, 2025
165fd50
add release profile to pom files
Jonas-Isr Jul 4, 2025
f7e1959
no more generate-release-artifacts script needed(?)
Jonas-Isr Jul 4, 2025
a63807a
reorder pom file
Jonas-Isr Jul 4, 2025
a758752
reintroduce parts of CI
Jonas-Isr Jul 4, 2025
f423c18
build sdk in prepare-release.yaml
Jonas-Isr Jul 4, 2025
8ecebfa
fix prepare-release.yaml
Jonas-Isr Jul 4, 2025
7821d86
fix prepare-release.yaml
Jonas-Isr Jul 4, 2025
7e061c2
double check
Jonas-Isr Jul 4, 2025
7eb1d81
show maven stack traces
Jonas-Isr Jul 7, 2025
9e22fde
disable remove-project-artifact for release profile
Jonas-Isr Jul 7, 2025
c42a053
reorder pom
Jonas-Isr Jul 7, 2025
383493f
remove remove-project-artifact execution completely
Jonas-Isr Jul 7, 2025
7bf4fc3
remove remove-project-artifact execution completely
Jonas-Isr Jul 7, 2025
716b5ac
add distributionManagement to bom
Jonas-Isr Jul 7, 2025
bec3730
add maven central as
Jonas-Isr Jul 7, 2025
df5a9bf
improve perform-release.yml
Jonas-Isr Jul 7, 2025
82772a0
troubleshooting pom-jar issue
Jonas-Isr Jul 7, 2025
f83289d
troubleshooting pom-jar issue
Jonas-Isr Jul 7, 2025
ee89b9f
troubleshooting pom-jar issue
Jonas-Isr Jul 7, 2025
e86632b
troubleshooting pom-jar issue
Jonas-Isr Jul 7, 2025
9f9eef7
resolve(?) pom-jar issue for module parents
Jonas-Isr Jul 7, 2025
f18b7b9
fix parent pom
Jonas-Isr Jul 7, 2025
20ac0bd
troubleshoot bom problem
Jonas-Isr Jul 7, 2025
9853860
troubleshoot bom problem
Jonas-Isr Jul 7, 2025
33f6af8
troubleshoot bom problem
Jonas-Isr Jul 7, 2025
1883de1
troubleshoot bom problem
Jonas-Isr Jul 7, 2025
d638099
troubleshoot bom problem
Jonas-Isr Jul 7, 2025
c19c4f3
troubleshoot bom problem
Jonas-Isr Jul 8, 2025
c49ff8b
troubleshoot bom problem
Jonas-Isr Jul 8, 2025
2eace63
add scm information to all poms
Jonas-Isr Jul 8, 2025
3632ea0
cosmetics
Jonas-Isr Jul 8, 2025
2519a6b
add flatten-maven-plugin
Jonas-Isr Jul 8, 2025
1693b0f
add SCM info to sdk-core pom
Jonas-Isr Jul 8, 2025
b71636f
remove modules to speed up process
Jonas-Isr Jul 8, 2025
eacd39b
remove modules to speed up process
Jonas-Isr Jul 8, 2025
6d756d3
remove modules to speed up process
Jonas-Isr Jul 8, 2025
56cbe23
remove modules to speed up process
Jonas-Isr Jul 8, 2025
d187314
remove modules to speed up process
Jonas-Isr Jul 8, 2025
cc83ae1
remove modules to speed up process
Jonas-Isr Jul 8, 2025
c327e6e
remove modules to speed up process
Jonas-Isr Jul 8, 2025
f107725
remove modules to speed up process
Jonas-Isr Jul 8, 2025
6dc26a5
remove modules to speed up process
Jonas-Isr Jul 8, 2025
880707a
try flatten-plugin
Jonas-Isr Jul 8, 2025
825555b
add explicit versions to sdk-parent dependencies (maven validation is…
Jonas-Isr Jul 8, 2025
9021fd9
sort pom
Jonas-Isr Jul 8, 2025
a75232f
Release 0.18.0 (#18)
bot-sdk-js Jul 8, 2025
73b195c
Revert "Release 0.18.0 (#18)"
Jonas-Isr Jul 8, 2025
ce8cdb4
clean up parent pom
Jonas-Isr Jul 8, 2025
8156ca2
Release 0.19.0 (#19)
bot-sdk-js Jul 8, 2025
ae74f39
Revert "Release 0.19.0 (#19)"
Jonas-Isr Jul 9, 2025
21532a7
clean up parent pom
Jonas-Isr Jul 9, 2025
792932d
add missing plugin versions
Jonas-Isr Jul 9, 2025
108887a
Release 0.20.0 (#20)
bot-sdk-js Jul 9, 2025
11db852
Revert "Release 0.20.0 (#20)"
Jonas-Isr Jul 9, 2025
b91a024
add missing modules again to test
Jonas-Isr Jul 9, 2025
a64885f
manage which modules are released through modules list
Jonas-Isr Jul 9, 2025
d3c2a69
Release 0.22.0 (#22)
bot-sdk-js Jul 9, 2025
8b3354a
Revert "Release 0.22.0 (#22)"
Jonas-Isr Jul 9, 2025
0fa3e4d
remove audience profile and property from pom files
Jonas-Isr Jul 9, 2025
a1b97f9
fix(?) testutils issue
Jonas-Isr Jul 9, 2025
99aec60
Release 0.24.0 (#24)
bot-sdk-js Jul 9, 2025
b3af438
Revert "Release 0.24.0 (#24)"
Jonas-Isr Jul 9, 2025
1e4f7eb
fix(?) testutils issue
Jonas-Isr Jul 9, 2025
359828b
Release 0.25.0 (#25)
bot-sdk-js Jul 9, 2025
9d83c54
Revert "Release 0.25.0 (#25)"
Jonas-Isr Jul 9, 2025
0baaa12
remove modules to speed up workflows
Jonas-Isr Jul 9, 2025
4affdaf
troubleshoot testutils issue
Jonas-Isr Jul 9, 2025
1657808
Release 0.26.0 (#26)
bot-sdk-js Jul 9, 2025
234a92f
Revert "Release 0.26.0 (#26)"
Jonas-Isr Jul 9, 2025
f513aa5
reintroduce additional module to test
Jonas-Isr Jul 9, 2025
c8404a4
Release 0.27.0 (#27)
bot-sdk-js Jul 10, 2025
bdfd612
Revert "Release 0.27.0 (#27)"
Jonas-Isr Jul 10, 2025
4de26cf
reintroduce javadoc
Jonas-Isr Jul 10, 2025
132fa4d
reintroduce tests to CI
Jonas-Isr Jul 10, 2025
fe65769
disable main-build in favour of deploy snapshot to artifactory
Jonas-Isr Jul 10, 2025
6a7a26d
disable main-build in favour of deploy snapshot to artifactory
Jonas-Isr Jul 10, 2025
050bb6e
remove tests again for speed (and missing coverage goals)
Jonas-Isr Jul 10, 2025
94ac27b
put more steps together (try apidocs release)
Jonas-Isr Jul 10, 2025
d1004c8
troubleshooting apidocs release
Jonas-Isr Jul 10, 2025
1fdfc30
troubleshooting apidocs release
Jonas-Isr Jul 10, 2025
bdb24c6
troubleshooting apidocs release
Jonas-Isr Jul 10, 2025
4d6f185
troubleshooting apidocs release
Jonas-Isr Jul 10, 2025
345cc96
Release 0.28.0 (#28)
bot-sdk-js Jul 10, 2025
c591297
Revert "Release 0.28.0 (#28)"
Jonas-Isr Jul 11, 2025
16ae98c
troubleshooting apidocs release
Jonas-Isr Jul 11, 2025
8e8c766
troubleshooting apidocs release
Jonas-Isr Jul 11, 2025
d4e1b40
troubleshooting apidocs release
Jonas-Isr Jul 11, 2025
564f3ae
troubleshooting apidocs release
Jonas-Isr Jul 11, 2025
7bfae19
troubleshooting apidocs release
Jonas-Isr Jul 11, 2025
9b388f7
troubleshooting apidocs release
Jonas-Isr Jul 11, 2025
1307f0f
troubleshooting apidocs release
Jonas-Isr Jul 11, 2025
311c7c1
troubleshooting apidocs release
Jonas-Isr Jul 11, 2025
3ef13fb
troubleshooting apidocs release
Jonas-Isr Jul 14, 2025
9d86825
troubleshooting apidocs release
Jonas-Isr Jul 14, 2025
14242b0
delete slack notification in deploy-snapshot.yaml
Jonas-Isr Jul 14, 2025
a55e355
troubleshooting apidocs release
Jonas-Isr Jul 14, 2025
54fb499
troubleshooting apidocs release
Jonas-Isr Jul 14, 2025
3719185
troubleshooting apidocs release
Jonas-Isr Jul 14, 2025
87b3d2b
reordered parent pom (to align with structure from ai sdk)
Jonas-Isr Jul 15, 2025
0f6955a
merge docs and release profile
Jonas-Isr Jul 15, 2025
424b1df
merge docs and release profile
Jonas-Isr Jul 15, 2025
b9a55a4
merge docs and release profile
Jonas-Isr Jul 15, 2025
fbded01
troubleshooting apidocs release
Jonas-Isr Jul 15, 2025
64faddb
troubleshooting apidocs release
Jonas-Isr Jul 16, 2025
95f2297
troubleshooting apidocs release
Jonas-Isr Jul 16, 2025
2053114
troubleshooting apidocs release
Jonas-Isr Jul 16, 2025
8f136e5
Revert "troubleshooting apidocs release"
Jonas-Isr Jul 16, 2025
c54afc7
troubleshooting apidocs release
Jonas-Isr Jul 16, 2025
011ea52
troubleshooting apidocs release
Jonas-Isr Jul 16, 2025
8820d04
Revert "troubleshooting apidocs release"
Jonas-Isr Jul 16, 2025
b95c441
troubleshooting apidocs release
Jonas-Isr Jul 16, 2025
d0a8fd3
troubleshooting apidocs release
Jonas-Isr Jul 16, 2025
bb9e993
cleanup
Jonas-Isr Jul 16, 2025
07978e9
cleanup
Jonas-Isr Jul 16, 2025
d738829
cleanup
Jonas-Isr Jul 16, 2025
74ee560
cleanup
Jonas-Isr Jul 16, 2025
8572626
cleanup
Jonas-Isr Jul 16, 2025
d6b3621
cleanup
Jonas-Isr Jul 16, 2025
12449ab
cleanup
Jonas-Isr Jul 16, 2025
1d5dbde
cleanup
Jonas-Isr Jul 16, 2025
ee1fac2
cleanup
Jonas-Isr Jul 16, 2025
336ad3c
cleanup
Jonas-Isr Jul 16, 2025
dce47b4
cleanup
Jonas-Isr Jul 16, 2025
1cdebcc
cleanup
Jonas-Isr Jul 17, 2025
17a2f20
cleanup
Jonas-Isr Jul 17, 2025
8604c4d
troubleshoot validation
Jonas-Isr Jul 17, 2025
48dbd63
troubleshoot validation
Jonas-Isr Jul 18, 2025
a3e9985
troubleshoot validation
Jonas-Isr Jul 18, 2025
ecb1560
troubleshoot validation - reintroduce flatten-maven-plugin
Jonas-Isr Jul 18, 2025
dcdcfc2
Release 0.33.0 (#32)
bot-sdk-js Jul 18, 2025
6d5f8f1
Revert "Release 0.33.0 (#32)"
Jonas-Isr Jul 18, 2025
b1b516a
clean-up
Jonas-Isr Jul 18, 2025
bb5803a
clean-up
Jonas-Isr Jul 18, 2025
bcd71e1
merge
Jonas-Isr Jul 21, 2025
bf5d16b
clean up
Jonas-Isr Jul 21, 2025
f006ace
clean up
Jonas-Isr Jul 21, 2025
e4bd1d1
troubleshoot blackduck
Jonas-Isr Jul 21, 2025
9fa5020
exclude blackduck from prepare-release
Jonas-Isr Jul 21, 2025
6cfef49
exclude blackduck from prepare-release
Jonas-Isr Jul 21, 2025
d7c02f9
exclude blackduck from prepare-release
Jonas-Isr Jul 21, 2025
e9ce6a6
exclude blackduck from prepare-release
Jonas-Isr Jul 21, 2025
cedcc52
exclude blackduck from prepare-release
Jonas-Isr Jul 21, 2025
3e64644
exclude blackduck from prepare-release
Jonas-Isr Jul 21, 2025
696f3c2
exclude blackduck from prepare-release
Jonas-Isr Jul 21, 2025
0fa9fb0
exclude blackduck from prepare-release
Jonas-Isr Jul 22, 2025
b9cbac3
remove openapi-sample from deployment
Jonas-Isr Jul 22, 2025
ed63c9d
clean up
Jonas-Isr Jul 22, 2025
cb4c5c6
Release 0.39.0 (#35)
bot-sdk-js Jul 22, 2025
d2ac25b
Revert "Release 0.39.0 (#35)"
Jonas-Isr Jul 22, 2025
e423d9e
clean up
Jonas-Isr Jul 22, 2025
1753dec
clean up
Jonas-Isr Jul 22, 2025
9ed266b
clean up
Jonas-Isr Jul 22, 2025
977a954
clean up
Jonas-Isr Jul 22, 2025
23ff27e
add blackduck again
Jonas-Isr Jul 23, 2025
967156e
fix(?) blackduck exclude
Jonas-Isr Jul 23, 2025
91dc584
fix(?) blackduck exclude
Jonas-Isr Jul 23, 2025
00b53f6
Release 0.42.0 (#37)
bot-sdk-js Jul 23, 2025
71d176f
Revert "Release 0.42.0 (#37)"
Jonas-Isr Jul 23, 2025
0ab5e39
Charles' review
Jonas-Isr Jul 23, 2025
1035960
Release 0.43.0 (#38)
bot-sdk-js Jul 23, 2025
c00f8dc
Revert "Release 0.43.0 (#38)"
Jonas-Isr Jul 23, 2025
23e6f32
re-add cron for blackduck
Jonas-Isr Jul 23, 2025
a31b809
Charles review
Jonas-Isr Jul 24, 2025
ddfa55c
Charles review
Jonas-Isr Jul 24, 2025
3d9fb16
Charles review
Jonas-Isr Jul 24, 2025
95cc5ec
scm inherited?
Jonas-Isr Jul 24, 2025
ddf5cf6
remove scm from children
Jonas-Isr Jul 24, 2025
230893a
re-add flatten-maven-plugin
Jonas-Isr Jul 24, 2025
9538c04
re-add flatten-maven-plugin
Jonas-Isr Jul 24, 2025
daa0595
Alex' review
Jonas-Isr Jul 24, 2025
6714c83
Alex' review
Jonas-Isr Jul 25, 2025
8378ce3
re-add scm information to parents
Jonas-Isr Jul 25, 2025
cc4a5f7
Release 0.47.0 (#42)
bot-sdk-js Jul 25, 2025
32c01d5
Revert "Release 0.47.0 (#42)"
Jonas-Isr Jul 25, 2025
cc5af3d
Update README.md
newtork Jul 25, 2025
d556f91
Update README.md
newtork Jul 25, 2025
5f32616
Update prepare-release.yaml
Jonas-Isr Jul 25, 2025
fd1fd10
Merge branch 'main' into main
newtork Jul 30, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/workflow-succeeded/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ runs:
run: |
JOBS_JSON=$(gh run view "${{ steps.find-run-id.outputs.RUN_ID }}" --json jobs)
NON_SUCCESSFUL_JOBS=$(jq -r '.jobs[] | select(.conclusion != "success" and .conclusion != "neutral")' <<< "$JOBS_JSON")
EXCLUDED_JOBS=$(jq -r '.[]' <<< "${{ inputs.excluded-jobs }}")
EXCLUDED_JOBS=$(jq -r '.[]' <<< '${{ inputs.excluded-jobs }}')
while IFS= read -r EXCLUDED_JOB; do
if [[ -z "$EXCLUDED_JOB" ]]; then
continue
Expand Down
48 changes: 8 additions & 40 deletions .github/workflows/continuous-integration.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: "Continuous Integration"
on:
pull_request:
branches: [ "*" ]
push:
branches: [ "main" ]
Comment on lines +5 to 6
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI now runs on every PR. This is because main-build is deleted to align more with AI SDK.


workflow_dispatch:
Expand Down Expand Up @@ -32,7 +34,6 @@ on:

env:
M2_ROOT: ~/.m2/repository
RELEASE_ARTIFACT_NAME: "release-artifacts"
SDK_M2_NAME: "sdk-m2" # used for the installed SDK modules within the runner's maven repository
SDK_M2_PATH: |
~/.m2/repository/com/sap/cloud/sdk/**
Expand Down Expand Up @@ -67,7 +68,11 @@ jobs:
echo "COMMIT=${{ github.event.pull_request.head.sha }}" >> $GITHUB_OUTPUT
exit 0
fi
echo "Unable to determine commit SHA as the workflow was not triggered by a pull request and the commit input was not provided"
if [[ "${{ github.event_name }}" == "push" ]]; then
echo "COMMIT=${{ github.sha }}" >> $GITHUB_OUTPUT
exit 0
fi
echo "Unable to determine commit SHA as the workflow was not triggered by a pull request or push, and the commit input was not provided"
exit 1

check-formatting:
Expand Down Expand Up @@ -122,38 +127,9 @@ jobs:

- name: "Build SDK"
run: |
MVN_ARGS="${{ env.MVN_MULTI_THREADED_ARGS }} install -DskipTests -DskipFormatting"

if [[ "${{ github.event.inputs.build-release-artifacts }}" == "true" ]]; then
echo "[DEBUG] Building release artifacts"
python .pipeline/scripts/generate-javadoc-sourcepath-properties.py
MVN_ARGS="$MVN_ARGS javadoc:aggregate -Pdocs"
fi

MVN_ARGS="${{ env.MVN_MULTI_THREADED_ARGS }} clean install -DskipTests -DskipFormatting"
echo "[DEBUG] Running Maven with following arguments: $MVN_ARGS"
mvn $MVN_ARGS

if [[ "${{ github.event.inputs.build-release-artifacts }}" == "true" ]]; then
VERSION=$(cat latest.json | jq -r .version)
mkdir -p $HOME/.sdk-release

PYTHON_ARGS="--version $VERSION --path-prefix $HOME/.sdk-release/${{ env.RELEASE_ARTIFACT_NAME }}"
if [[ "${{ github.event.inputs.sign-release-artifacts }}" == "true" ]]; then
echo "[DEBUG] Signing release artifacts"
PYTHON_ARGS="$PYTHON_ARGS --with-signing"
fi

python .pipeline/scripts/generate-release-artifacts.py $PYTHON_ARGS
else
echo "[DEBUG] Skipping release artifact generation"
fi

- name: "Build Module Inventory"
run: >
python ./scripts/create_module_inventory_file.py
--sdk-root-directory ./
--output-file ./module-inventory.json
--script-config ./scripts/common/_maven_module/maven_module_reader_configuration.json

- name: "Verify Local Changes"
run: |
Expand All @@ -166,14 +142,6 @@ jobs:
exit 1
fi

- name: "Upload Release Artifacts"
if: ${{ github.event.inputs.build-release-artifacts == 'true' }}
uses: actions/upload-artifact@v4
with:
name: ${{ env.RELEASE_ARTIFACT_NAME }}
path: ~/.sdk-release/${{ env.RELEASE_ARTIFACT_NAME }}
retention-days: 1

- name: "Upload SDK M2"
uses: actions/upload-artifact@v4
with:
Expand Down
96 changes: 25 additions & 71 deletions .github/workflows/deploy-snapshot.yaml
Original file line number Diff line number Diff line change
@@ -1,86 +1,40 @@
name: Deploy Snapshot to Maven Central
name: Deploy Snapshot to SAP Common Artifactory

on:
workflow_dispatch:
inputs:
skip_blackduck_scan:
description: "Skip Blackduck Scan"
type: boolean
default: false
required: false

env:
CI_BUILD_WORKFLOW: "continuous-integration.yaml" # Name of the workflow that should be triggered for CI builds
RELEASE_ARTIFACT_NAME: "release-artifacts" # Name of the artifact that should be downloaded from the CI build workflow

MVN_CLI_ARGS: "--batch-mode --no-transfer-progress --fail-at-end --show-version"
schedule:
- cron: 0 20 * * 1-5

jobs:
run-ci:
name: "Continuous Integration"
runs-on: ubuntu-latest
outputs:
ci-run-id: ${{ steps.trigger-ci.outputs.run-id }}
permissions:
actions: write # needed to trigger the ci-build workflow
statuses: write # needed to update the commit status
steps:
- name: "Checkout repository"
uses: actions/checkout@v4
- name: "Get Commit SHA"
run: echo "COMMIT_SHA=$(git rev-parse HEAD)" >> $GITHUB_ENV
- name: "Get Branch Name"
run: echo "BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD)" >> $GITHUB_ENV

- name: "Trigger CI Workflow"
id: trigger-ci
uses: ./.github/actions/trigger-workflow
with:
workflow: ${{ env.CI_BUILD_WORKFLOW }}
workflow-ref: ${{ env.BRANCH_NAME }}
commit-sha: ${{ env.COMMIT_SHA }}
parameters: >
-f commit=${{ env.COMMIT_SHA }}
-f build-release-artifacts=true
-f run-blackduck-scan=${{ !github.event.inputs.skip_blackduck_scan }}

- name: "Await CI Workflow"
uses: ./.github/actions/await-workflow
with:
run-id: ${{ steps.trigger-ci.outputs.run-id }}
commit-status: "Continuous Integration Workflow"

deploy-snapshot:
name: Deploy Snapshot
needs: [ run-ci ]
runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
actions: read # needed to download the artifacts from the ci-build workflow
steps:
- name: "Checkout Repository"
uses: actions/checkout@v4

- name: "Deploy Snapshot"
uses: ./.github/actions/deploy-snapshot
- name: "Setup java"
uses: actions/setup-java@v4
with:
ci-run-id: ${{ needs.run-ci.outputs.ci-run-id }}
repository-url: "https://oss.sonatype.org/content/repositories/snapshots"
repository-username: ${{ secrets.MAVEN_CENTRAL_USER }}
repository-password: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
release-artifact-name: ${{ env.RELEASE_ARTIFACT_NAME }}

notify-job:
runs-on: ubuntu-latest
needs: [ run-ci, deploy-snapshot ]
if: ${{ failure() && github.ref == 'refs/heads/main' }}
steps:
- name: "Checkout"
uses: actions/checkout@v4
- name: "Notify"
run: python .pipeline/scripts/notify.py
distribution: "sapmachine"
java-version: "17"
server-id: artifactory-snapshots
server-username: DEPLOYMENT_USER
server-password: DEPLOYMENT_PASS

- name: "Publish Snapshot"
run: >
mvn
--batch-mode
--no-transfer-progress
--threads 1C
--show-version
-DrepositoryId=artifactory-snapshots
-Dmaven.compiler.showCompilationChanges
-Dhttp.keepAlive=false
clean package deploy
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
WORKFLOW: ${{ github.workflow }}
WORKFLOW_RUN_URL: https://github.com/SAP/cloud-sdk-java/actions/runs/${{ github.run_id }}
BRANCH_NAME: ${{ github.ref_name }}
DEPLOYMENT_USER: ${{ secrets.ARTIFACTORY_COMMON_USER }}
DEPLOYMENT_PASS: ${{ secrets.ARTIFACTORY_COMMON_PASSWORD }}

77 changes: 0 additions & 77 deletions .github/workflows/main-build.yaml

This file was deleted.

Loading