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

yuzhou pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/rocketmq-site.git

commit ccb1a2167b57256a93e1c78ea6493f8e41867550
Author: yuz10 <[email protected]>
AuthorDate: Wed Aug 18 01:26:27 2021 +0800

    Create main.yml
    
    Update main.yml
    
    Update main.yml
    
    Update main.yml
    
    Update main.yml
    
    Update main.yml
    
    Update main.yml
    
    Update main.yml
    
    Update main.yml
    
    Update main.yml
    
    Update main.yml
    
    Update main.yml
    
    Update main.yml
    
    Update and rename main.yml to publish-asf-site.yml
---
 .github/workflows/publish-asf-site.yml | 39 ++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

diff --git a/.github/workflows/publish-asf-site.yml 
b/.github/workflows/publish-asf-site.yml
new file mode 100644
index 0000000..59a58bc
--- /dev/null
+++ b/.github/workflows/publish-asf-site.yml
@@ -0,0 +1,39 @@
+name: publish-asf-site
+
+on:
+  push:
+    branches: [ master ]
+  workflow_dispatch:
+
+jobs:
+  build:
+    runs-on: ubuntu-latest
+
+    steps:
+      - uses: actions/checkout@v2
+        with:
+          path: rocketmq-site
+
+      - run: |
+          cd $GITHUB_WORKSPACE/rocketmq-site/
+          sudo gem install jekyll bundler
+          bundle install
+          bundle exec jekyll build
+          git status
+
+      - uses: actions/checkout@v2
+        with:
+          ref: asf-site
+          path: asf-site
+
+      - run: |
+          cd $GITHUB_WORKSPACE/asf-site/
+          git rm -rf .
+          cp -Rf $GITHUB_WORKSPACE/rocketmq-site/. .
+          ls
+          git config --global user.email "[email protected]"
+          git config --global user.name "github-action"
+          git add .
+          git status
+          git commit -m "Latest site on successful build auto-pushed to 
asf-site"
+          git push

Reply via email to