@@ -55,13 +55,27 @@ jobs:
5555 mkdir https://dist.apache.org/repos/dist/dev/grails \
5656 -m "Create 'grails' dev folder"
5757 fi
58+ - name : " Ensure grails core folder exists"
59+ run : |
60+ set -e
61+
62+ if svn ls https://dist.apache.org/repos/dist/dev/grails/core --username "$SVN_USERNAME" --password "$SVN_PASSWORD" --non-interactive; then
63+ echo "Dev Folder 'grails/core' already exists — skipping creation"
64+ else
65+ echo "Dev Folder 'grails/core' does not exist, creating"
66+ svnmucc --non-interactive \
67+ --username "$SVN_USERNAME" \
68+ --password "$SVN_PASSWORD" \
69+ mkdir https://dist.apache.org/repos/dist/dev/grails/core \
70+ -m "Create 'grails' dev folder"
71+ fi
5872 - name : " Checkout dev repo"
5973 run : |
60- svn checkout --non-interactive --username "$SVN_USERNAME" --password "$SVN_PASSWORD" https://dist.apache.org/repos/dist/dev/grails dev-repo
74+ svn checkout --non-interactive --username "$SVN_USERNAME" --password "$SVN_PASSWORD" https://dist.apache.org/repos/dist/dev/grails/core dev-repo
6175 - name : " Remove existing dev version"
6276 run : |
6377 VERSION="${{ steps.release_version.outputs.version }}"
64- cd dev-repo
78+ cd dev-repo/core
6579 if [ -d "$VERSION" ]; then
6680 svn delete "$VERSION"
6781 svn commit -m "Remove grails dev version $VERSION" --username "$SVN_USERNAME" --password "$SVN_PASSWORD"
7286 run : |
7387 TAG=${{ github.event.inputs.release_tag }}
7488 VERSION=${{ steps.release_version.outputs.version }}
75- cd dev-repo
89+ cd dev-repo/core
7690 mkdir -p $VERSION/sources
7791 cd $VERSION/sources
7892 curl -LO https://github.com/apache/grails-core/releases/download/$TAG/apache-grails-$VERSION-incubating-src.zip
87101 run : |
88102 TAG=${{ github.event.inputs.release_tag }}
89103 VERSION=${{ steps.release_version.outputs.version }}
90- cd dev-repo
104+ cd dev-repo/core
91105 mkdir -p $VERSION/distribution
92106 cd $VERSION/distribution
93107 curl -LO https://github.com/apache/grails-forge/releases/download/$TAG/apache-grails-$VERSION-incubating-bin.zip
@@ -102,7 +116,7 @@ jobs:
102116 run : |
103117 TAG=${{ github.event.inputs.release_tag }}
104118 VERSION=${{ steps.release_version.outputs.version }}
105- cd dev-repo/$VERSION/distribution
119+ cd dev-repo/core/ $VERSION/distribution
106120 curl -LO https://github.com/apache/grails-core/releases/download/$TAG/apache-grails-wrapper-$VERSION-incubating-bin.zip
107121 curl -LO https://github.com/apache/grails-core/releases/download/$TAG/apache-grails-wrapper-$VERSION-incubating-bin.zip.sha512
108122 curl -LO https://github.com/apache/grails-core/releases/download/$TAG/apache-grails-wrapper-$VERSION-incubating-bin.zip.asc
0 commit comments