File tree Expand file tree Collapse file tree 2 files changed +50
-0
lines changed
Expand file tree Collapse file tree 2 files changed +50
-0
lines changed Original file line number Diff line number Diff line change 1+ {
2+ "files": [
3+ {
4+ "aql": {
5+ "items.find": {
6+ "$and": [
7+ {
8+ "@build.name": "${buildname}",
9+ "@build.number": "${buildnumber}",
10+ "path": { "$match": "org/springframework/batch/extensions/spring-batch-*" }
11+ }
12+ ]
13+ }
14+ },
15+ "target": "nexus/"
16+ }
17+ ]
18+ }
Original file line number Diff line number Diff line change 1+ name: Maven Central Extension Release
2+
3+ on:
4+ workflow_dispatch:
5+ inputs:
6+ buildName:
7+ description: "Artifactory build name"
8+ required: true
9+ buildNumber:
10+ description: "Artifactory build number"
11+ required: true
12+
13+ jobs:
14+
15+ release:
16+ runs-on: ubuntu-latest
17+ steps:
18+ - name: Checkout source code
19+ uses: actions/checkout@v4.2.2
20+ - name: Set Up JFrog CLI
21+ uses: jfrog/setup-jfrog-cli@9fe0f98bd45b19e6e931d457f4e98f8f84461fb5 # v4.4.1
22+ env:
23+ JF_ENV_SPRING: ${{ secrets.JF_ARTIFACTORY_SPRING }}
24+ - name: Download Release Artifacts
25+ shell: bash
26+ run: jf rt download --spec .github/extension-release-files-spec.json --spec-vars 'buildname=${{ github.event.inputs.buildName }};buildnumber=${{ github.event.inputs.buildNumber }}'
27+ - name: Sync to Maven Central
28+ uses: spring-io/central-publish-action@0cdd90d12e6876341e82860d951e1bcddc1e51b6 # v0.2.0
29+ with:
30+ token-name: ${{ secrets.CENTRAL_TOKEN_USERNAME }}
31+ token: ${{ secrets.CENTRAL_TOKEN_PASSWORD }}
32+ timeout: 120m
You can’t perform that action at this time.
0 commit comments