You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@grails.apache.org by jd...@apache.org on 2025/07/07 18:30:35 UTC

(grails-core) 02/02: [skip ci] ci: store SVN dist revision on release

This is an automated email from the ASF dual-hosted git repository.

jdaugherty pushed a commit to branch 7.0.x
in repository https://gitbox.apache.org/repos/asf/grails-core.git

commit c3db34e749bf3b5ab3a4dafbf184cea18f70d1ef
Author: James Daugherty <jd...@jdresources.net>
AuthorDate: Mon Jul 7 14:30:22 2025 -0400

    [skip ci] ci: store SVN dist revision on release
---
 .github/workflows/release.yml | 25 ++++++++++++++++++-------
 1 file changed, 18 insertions(+), 7 deletions(-)

diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 80884075db..d3e0454874 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -377,7 +377,7 @@ jobs:
           svn checkout --username "$SVN_USERNAME" --password "$SVN_PASSWORD" --non-interactive https://dist.apache.org/repos/dist/dev/incubator/grails/core dev-repo
       - name: "Remove existing dev version"
         run: |
-          VERSION="${{ needs.publish.outputs.release_version }}"
+          export VERSION="${{ needs.publish.outputs.release_version }}"
           cd dev-repo
           if [ -d "$VERSION" ]; then
             svn delete "$VERSION"
@@ -387,8 +387,8 @@ jobs:
           fi
       - name: "Fetch source distributions"
         run: |
-          TAG="v${{ needs.publish.outputs.release_version }}"
-          VERSION="${{ needs.publish.outputs.release_version }}"
+          export TAG="v${{ needs.publish.outputs.release_version }}"
+          export VERSION="${{ needs.publish.outputs.release_version }}"
           cd dev-repo
           mkdir -p $VERSION/sources          
           cd $VERSION/sources
@@ -399,8 +399,8 @@ jobs:
           ls -l
       - name: "Fetch binary distributions"
         run: |
-          TAG="v${{ needs.publish.outputs.release_version }}"
-          VERSION="${{ needs.publish.outputs.release_version }}"
+          export TAG="v${{ needs.publish.outputs.release_version }}"
+          export VERSION="${{ needs.publish.outputs.release_version }}"
           cd dev-repo
           mkdir -p $VERSION/distribution          
           cd $VERSION/distribution
@@ -414,14 +414,25 @@ jobs:
           ls -l
       - name: "Upload distributions"
         run: |
-          TAG="v${{ needs.publish.outputs.release_version }}"
-          VERSION="${{ needs.publish.outputs.release_version }}"
+          export TAG="v${{ needs.publish.outputs.release_version }}"
+          export VERSION="${{ needs.publish.outputs.release_version }}"
           cd dev-repo
           echo "Adding the following files to SVN:"
           tree
           svn add $VERSION --force
           svn commit -m "Upload grails distribution files for $VERSION" --username "$SVN_USERNAME" --password "$SVN_PASSWORD" --non-interactive
           pwd
+      - name: "Store Distribution SVN revision"
+        run: |
+          export VERSION="${{ needs.publish.outputs.release_version }}"
+          cd dev-repo
+          svn info $VERSION > "DIST_SVN_REVISION.txt"
+      - name: "Upload Distribution SVN revision"
+        uses: softprops/action-gh-release@v2
+        with:
+          files: DIST_SVN_REVISION.txt
+        env:
+          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
   docs:
     environment: docs
     name: "Publish Documentation"