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

jamesfredley pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/grails-static-website.git


The following commit(s) were added to refs/heads/master by this push:
     new 81fe6b033a test new publishing workflow
81fe6b033a is described below

commit 81fe6b033a27be9fe5ca13278c16ffbd0f621468
Author: James Fredley <[email protected]>
AuthorDate: Fri Jun 6 12:43:24 2025 -0400

    test new publishing workflow
---
 .github/workflows/publish2.yml | 52 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)

diff --git a/.github/workflows/publish2.yml b/.github/workflows/publish2.yml
new file mode 100644
index 0000000000..256ab53f4e
--- /dev/null
+++ b/.github/workflows/publish2.yml
@@ -0,0 +1,52 @@
+name: Publish
+
+on:
+  push:
+    branches:
+      - master
+  schedule:
+    - cron: '0 */2 * * *'
+  workflow_dispatch:
+
+jobs:
+  build:
+    runs-on: ubuntu-latest
+    permissions:
+      contents: write
+    if: github.repository == 'apache/grails-static-website'
+    steps:
+      - name: Set up JDK
+        uses: actions/setup-java@v4
+        with:
+          distribution: liberica
+          java-version: '11'
+      - name: Setup Gradle
+        uses: gradle/actions/setup-gradle@v4
+        with:
+          develocity-access-key: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
+          
+      - name: Build main site
+        run: ./gradlew clean build
+        env:
+          GRAILS_WS_URL: https://grails.staged.apache.org/
+
+      - name: Sync main site
+        uses: betahuhn/repo-file-sync-action@v1
+        with:
+          GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+          SOURCE_DIR: 'build/dist/'
+          DESTINATION_REPO: 'apache/grails-static-website'
+          DESTINATION_BRANCH: 'asf-site-staging'
+          COMMIT_MESSAGE: "Updating from GitHub Actions run:${{ github.run_id 
}}"
+
+      - name: Build guides site
+        run: ./gradlew clean buildGuide
+
+      - name: Sync guides site
+        uses: betahuhn/repo-file-sync-action@v1
+        with:
+          GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+          SOURCE_DIR: 'build/dist/'
+          DESTINATION_REPO: 'grails-guides/grails-guides-template'
+          DESTINATION_BRANCH: 'gh-pages'
+          COMMIT_MESSAGE: "Updating from GitHub Actions run:${{ github.run_id 
}}"

Reply via email to