Skip to content

Commit f97c408

Browse files
authored
hotfix: temporarily allow Release workflow to skip mvn deploy to recover 2.2.52 (#5220)
1 parent 7c99043 commit f97c408

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ name: Release
33
on:
44
workflow_dispatch:
55
branches: ["master"]
6+
inputs:
7+
skip_deploy:
8+
description: "Skip 'mvn -Prelease deploy' (use to recover when the current version is already on Maven Central). Runs 'mvn -Prelease verify' instead so javadocs are prepared for gh-pages."
9+
type: boolean
10+
default: false
611

712
jobs:
813
build:
@@ -73,9 +78,13 @@ jobs:
7378
git config --global hub.protocol https
7479
git remote set-url origin https://\${{ secrets.GITHUB_TOKEN }}:x-oauth-basic@github.com/''' + 'swagger-api/swagger-core' + '''.git
7580
- name: Run maven deploy/release
76-
if: env.RELEASE_OK == 'yes'
81+
if: env.RELEASE_OK == 'yes' && inputs.skip_deploy != true
7782
run: |
7883
./mvnw --no-transfer-progress -B -Prelease deploy
84+
- name: Run maven verify (recovery — javadocs only, no Central publish)
85+
if: env.RELEASE_OK == 'yes' && inputs.skip_deploy == true
86+
run: |
87+
./mvnw --no-transfer-progress -B -Prelease verify
7988
- name: Run prepare javadocs script
8089
id: prepareJavadocs
8190
if: env.RELEASE_OK == 'yes'

modules/swagger-annotations/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
<executions>
6767
<execution>
6868
<id>copy-resources</id>
69-
<phase>deploy</phase>
69+
<phase>verify</phase>
7070
<goals>
7171
<goal>copy-resources</goal>
7272
</goals>

0 commit comments

Comments
 (0)