You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@parquet.apache.org by sh...@apache.org on 2022/03/08 21:07:14 UTC

[parquet-site] branch staging updated: Final hidden files to kick off automation

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

shangxinli pushed a commit to branch staging
in repository https://gitbox.apache.org/repos/asf/parquet-site.git


The following commit(s) were added to refs/heads/staging by this push:
     new bb26a47  Final hidden files to kick off automation
     new 72df76c  Merge pull request #11 from vinooganesh/staging
bb26a47 is described below

commit bb26a47a5fded4cb6e137685d92a78c3a1ab3433
Author: Vinoo Ganesh <vi...@gmail.com>
AuthorDate: Tue Mar 8 13:30:57 2022 -0500

    Final hidden files to kick off automation
---
 .github/workflows/deploy.yml | 48 ++++++++++++++++++++++++++++++++++++++++++++
 .gitignore                   |  6 ++++++
 .gitmodules                  |  4 ++++
 .nvmrc                       |  1 +
 4 files changed, 59 insertions(+)

diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
new file mode 100644
index 0000000..6bc7a94
--- /dev/null
+++ b/.github/workflows/deploy.yml
@@ -0,0 +1,48 @@
+name: Build and Deploy Parquet Site
+
+on:
+  push:
+    branches: [ staging ]
+
+jobs:
+  Build_and_Deploy_Site:
+    runs-on: ubuntu-20.04
+    concurrency:
+      group: ${{ github.workflow }}-${{ github.ref }}
+    steps:
+      - uses: actions/checkout@v2
+        with:
+          submodules: recursive
+          fetch-depth: 0
+
+      - name: Setup Hugo
+        uses: peaceiris/actions-hugo@v2
+        with:
+          hugo-version: 'latest'
+          extended: true
+
+      - uses: actions/setup-node@v2
+        with:
+          node-version: '16'
+
+      - name: Cache dependencies
+        uses: actions/cache@v1
+        with:
+          path: ~/.npm
+          key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
+          restore-keys: |
+            ${{ runner.os }}-node-
+
+      - run: npm install
+
+      - name: Build
+        run: hugo --minify
+
+      - name: Deploy
+        uses: peaceiris/actions-gh-pages@v3
+        with:
+          github_token: ${{ secrets.GITHUB_TOKEN }}
+          publish_dir: public
+          publish_branch: asf-staging
+          destination_dir: ./output
+          keep_files: true
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..0ce022c
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,6 @@
+.DS_Store
+/public
+resources/
+node_modules/
+package-lock.json
+.hugo_build.lock
diff --git a/.gitmodules b/.gitmodules
new file mode 100644
index 0000000..a1524f2
--- /dev/null
+++ b/.gitmodules
@@ -0,0 +1,4 @@
+
+[submodule "themes/docsy"]
+	path = themes/docsy
+	url = https://github.com/google/docsy
diff --git a/.nvmrc b/.nvmrc
new file mode 100644
index 0000000..b009dfb
--- /dev/null
+++ b/.nvmrc
@@ -0,0 +1 @@
+lts/*