Skip to content

Commit 0226b5d

Browse files
authored
IGNITE-28643 Fixed website documentation publishing job (#13102)
1 parent 87404be commit 0226b5d

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

.github/workflows/publish-website-on-branch-update.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,20 @@ jobs:
4444
- name: Check out 'ignite' repository code
4545
uses: actions/checkout@v3
4646

47-
- name: Check that the version was released
48-
run: |
49-
mvn org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M3:enforce -Drules=requireReleaseDeps,requireReleaseVersion -pl modules/core
50-
5147
- name: Get the version from POM file
5248
run: |
5349
version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
5450
echo "IGNITE_VERSION=$version" >> $GITHUB_ENV
5551
52+
- name: Check that the version was released
53+
run: |
54+
URL="https://repo.maven.apache.org/maven2/org/apache/ignite/ignite-core/${IGNITE_VERSION}/ignite-core-${IGNITE_VERSION}.pom"
55+
56+
if ! curl --silent --show-error --fail --head "$URL"; then
57+
echo "ignite-core:${IGNITE_VERSION} not found in Maven Central"
58+
exit 1
59+
fi
60+
5661
- name: Check out 'ignite-website' repository code
5762
uses: actions/checkout@v3
5863
with:

0 commit comments

Comments
 (0)