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

jamesfredley pushed a commit to branch fix-publishing
in repository https://gitbox.apache.org/repos/asf/grails-forge-ui.git

commit 9f2d7d68eb4957a910614babb7d1003c237ea3f4
Author: James Fredley <[email protected]>
AuthorDate: Tue Jun 10 22:39:40 2025 -0400

    Fix publishing
---
 .github/workflows/publish.yml | 2 +-
 publish.sh                    | 4 +---
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index 01a3752..b3deada 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -25,4 +25,4 @@ jobs:
         run: ./publish.sh
         env:
           GITHUB_SLUG: grails/grails-forge-ui
-          GH_TOKEN: ${{ secrets.GH_TOKEN }}
+          GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
\ No newline at end of file
diff --git a/publish.sh b/publish.sh
index fcaca7d..ce4f4cd 100755
--- a/publish.sh
+++ b/publish.sh
@@ -19,8 +19,6 @@ fi
 
 git config --global user.email "${COMMIT_EMAIL}"
 git config --global user.name "${COMMIT_NAME}"
-git config --global credential.helper "store --file=~/.git-credentials"
-echo "https://$GH_TOKEN:@github.com"; > ~/.git-credentials
 
 ./gradlew build || EXIT_STATUS=$?
 
@@ -37,7 +35,7 @@ cp -r ../build/launch/* .
 #else
 git add -A
 git commit -a -m "Updating $GITHUB_SLUG gh-pages branch for Github Actions 
run:$GITHUB_RUN_ID"
-git push origin HEAD
+git push https://oauth2:${GH_TOKEN}@github.com/${GITHUB_SLUG}.git gh-pages
 #fi
 cd ..
 rm -rf gh-pages

Reply via email to