You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@eventmesh.apache.org by mi...@apache.org on 2021/08/10 08:52:38 UTC

[incubator-eventmesh-site] 36/49: Setup GitHub Actions to build and deploy the website

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

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

commit a09a5a29d953ef245180072fbef82d6bc87c84c2
Author: Xiaoyang Liu <si...@gmail.com>
AuthorDate: Wed Jul 21 16:27:50 2021 +0800

    Setup GitHub Actions to build and deploy the website
    
    Signed-off-by: Xiaoyang Liu <si...@gmail.com>
---
 .github/workflows/deploy.yml | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
new file mode 100644
index 0000000..708e07a
--- /dev/null
+++ b/.github/workflows/deploy.yml
@@ -0,0 +1,36 @@
+name: Build and Deploy
+
+on:
+  pull_request:
+    branches: [master]
+  push:
+    branches: [master]
+
+# A workflow run is made up of one or more jobs that can run sequentially or in parallel
+jobs:
+  # This workflow contains a single job called "build"
+  build:
+    # The type of runner that the job will run on
+    runs-on: ubuntu-latest
+
+    # Steps represent a sequence of tasks that will be executed as part of the job
+    steps:
+      # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
+      - uses: actions/checkout@v2.3.4
+      - uses: actions/setup-node@v2.2.0
+        with:
+          node-version: "16"
+
+      - name: Build
+        run: |
+          npm ci
+          npm run build
+          cp .asf.yaml build
+
+      - name: Deploy
+        uses: peaceiris/actions-gh-pages@v3.8.0
+        if: github.event_name == 'push' && github.ref == 'refs/heads/master'
+        with:
+          github_token: ${{ secrets.DEPLOY_TOKEN }}
+          publish_dir: build
+          publish_branch: asf-site

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: commits-help@eventmesh.apache.org