Skip to content

Commit 1ac962b

Browse files
committed
Migrate release process to GitHub Actions
Complete migration to GitHub Actions. See gh-411
1 parent d92f210 commit 1ac962b

File tree

2 files changed

+34
-2
lines changed

2 files changed

+34
-2
lines changed

Diff for: .github/artifacts.spec

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"files": [
3+
{
4+
"aql": {
5+
"items.find": {
6+
"$and": [
7+
{
8+
"@build.name": "${buildName}",
9+
"@build.number": "${buildNumber}",
10+
}
11+
]
12+
}
13+
},
14+
"target": "nexus/"
15+
}
16+
]
17+
}

Diff for: .github/workflows/promote.yml

+17-2
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,20 @@ jobs:
3333
name: Promote
3434
runs-on: ubuntu-latest
3535
steps:
36-
- name: Promote
37-
run: echo "Promote happens here"
36+
- name: Check Out
37+
uses: actions/checkout@v4
38+
- name: Check Out 2
39+
uses: actions/checkout@v4
40+
- name: Set Up JFrog CLI
41+
uses: jfrog/setup-jfrog-cli@727b480bafd0d8adbdfdb2257a7d7c2e08eb1779 # v4.0.2
42+
env:
43+
JF_ENV_SPRING: ${{ secrets.JF_ARTIFACTORY_SPRING }}
44+
- name: Download Release Artifacts
45+
shell: bash
46+
run: |
47+
pwd
48+
jf rt download --spec ./.github/artifacts.spec --spec-vars 'buildName=${{ format('spring-javaformat-{0}', inputs.version) }};buildNumber=${{ inputs.build-number }}'
49+
- name: Check Sync Status
50+
run: |
51+
url=${{ format('https://repo.maven.apache.org/maven2/io/spring/javaformat/spring-javaformat/{0}/spring-javaformat-{}.pom', inputs.version) }}
52+
curl --fail --head --silent $url > /dev/null

0 commit comments

Comments
 (0)