Fix ci publish

This commit is contained in:
Janne Valkealahti
2023-05-28 17:36:13 +01:00
parent 21c411abbf
commit 07fcc754e8
3 changed files with 1 additions and 78 deletions

View File

@@ -1,40 +0,0 @@
name: CI Publish
on:
workflow_call:
secrets:
jfArtifactorySpring:
required: true
jobs:
publish:
runs-on: ubuntu-latest
name: CI Publish
steps:
- uses: actions/checkout@v2
- uses: jvalkeal/setup-maven@v1
with:
maven-version: 3.8.4
- uses: actions/setup-java@v2
with:
distribution: adopt
java-version: 8
- uses: jfrog/setup-jfrog-cli@v2
with:
version: 2.13.0
env:
JF_ARTIFACTORY_SPRING: ${{ secrets.jfArtifactorySpring }}
- name: Configure JFrog Cli
run: |
jfrog rt mvnc \
--server-id-deploy repo.spring.io \
--repo-deploy-releases release \
--repo-deploy-snapshots snapshot
echo JFROG_CLI_BUILD_NAME=spring-shell-21x >> $GITHUB_ENV
echo JFROG_CLI_BUILD_NUMBER=$GITHUB_RUN_NUMBER >> $GITHUB_ENV
- name: Build and Publish
env:
DISABLE_SAMPLES: true
run: |
jfrog rt mvn clean install -B -DskipTests
jfrog rt build-publish

View File

@@ -43,7 +43,7 @@ jobs:
- uses: actions/setup-java@v2
with:
distribution: adopt
java-version: 17
java-version: 8
cache: maven
- uses: jfrog/setup-jfrog-cli@v2
with:

View File

@@ -17,7 +17,6 @@
<spring-asciidoctor-backends.version>0.0.5</spring-asciidoctor-backends.version>
<asciidoctorj.version>2.5.1</asciidoctorj.version>
<jruby.version>9.2.17.0</jruby.version>
<spring-doc-resources.version>0.2.5</spring-doc-resources.version>
</properties>
<!-- This project artificially depends on all others so that the javadoc plugin can consolidate everything.-->
@@ -46,24 +45,6 @@
<build>
<plugins>
<!-- doc resources -->
<plugin>
<groupId>com.googlecode.maven-download-plugin</groupId>
<artifactId>download-maven-plugin</artifactId>
<executions>
<execution>
<id>unpack-doc-resources</id>
<phase>generate-resources</phase>
<goals>
<goal>wget</goal>
</goals>
<configuration>
<url>https://repo.spring.io/release/io/spring/docresources/spring-doc-resources/${spring-doc-resources.version}/spring-doc-resources-${spring-doc-resources.version}.zip</url>
<unpack>true</unpack>
<outputDirectory>${project.build.directory}/refdocs/</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
@@ -89,24 +70,6 @@
</plugin>
<!-- ASCIIDOC -->
<plugin>
<groupId>com.googlecode.maven-download-plugin</groupId>
<artifactId>download-maven-plugin</artifactId>
<executions>
<execution>
<id>unpack-doc-resources</id>
<phase>generate-resources</phase>
<goals>
<goal>wget</goal>
</goals>
<configuration>
<url>https://repo.spring.io/release/io/spring/docresources/spring-doc-resources/${spring-doc-resources.version}/spring-doc-resources-${spring-doc-resources.version}.zip</url>
<unpack>true</unpack>
<outputDirectory>${project.build.directory}/refdocs/</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>