Skip to content

Commit d0dd446

Browse files
committed
Configure snapshot publish
- New workflow which can be run manually to test publish. - Relates #328
1 parent 1dd2706 commit d0dd446

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/ci-publish.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: CI Publish
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
publish:
8+
runs-on: ubuntu-latest
9+
name: CI Publish
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: jvalkeal/setup-maven@v1
13+
with:
14+
maven-version: 3.8.4
15+
- uses: actions/setup-java@v2
16+
with:
17+
distribution: adopt
18+
java-version: 8
19+
- uses: jfrog/setup-jfrog-cli@v1
20+
with:
21+
version: 1.46.4
22+
env:
23+
JF_ARTIFACTORY_SPRING: ${{ secrets.JF_ARTIFACTORY_SPRING }}
24+
- name: Configure JFrog Cli
25+
run: |
26+
jfrog rt mvnc \
27+
--server-id-resolve=repo.spring.io \
28+
--server-id-deploy=repo.spring.io \
29+
--repo-resolve-releases=libs-milestone \
30+
--repo-resolve-snapshots=libs-snapshot \
31+
--repo-deploy-releases=release \
32+
--repo-deploy-snapshots=snapshot
33+
echo JFROG_CLI_BUILD_NAME=spring-shell-main >> $GITHUB_ENV
34+
echo JFROG_CLI_BUILD_NUMBER=$GITHUB_RUN_NUMBER >> $GITHUB_ENV
35+
- name: Build and Publish
36+
run: |
37+
jfrog rt mvn -B clean install
38+
jfrog rt build-publish

0 commit comments

Comments
 (0)