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

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


The following commit(s) were added to refs/heads/master by this push:
     new 10d7f11  [SYSTEMDS-2942] Basic github action for website build
10d7f11 is described below

commit 10d7f1185c523eb76682d65c270708a27f799d84
Author: Janardhan Pulivarthi <[email protected]>
AuthorDate: Wed Apr 21 23:54:02 2021 +0530

    [SYSTEMDS-2942] Basic github action for website build
    
    - install jekyll gem
    - create build task in gulp
      Reference: https://gulpjs.com/docs/en/getting-started/creating-tasks/
    - Only build the content for verifying that the build passes
---
 .github/workflows/build.yml | 33 +++++++++++++++++++++++++++++++++
 gulpfile.js                 |  4 ++++
 2 files changed, 37 insertions(+)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 0000000..d0ed51b
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,33 @@
+name: Build website
+
+on:
+  push:
+    branches: [ master ]
+  pull_request:
+    branches: [ master ]
+  # enable manual workflow trigger
+  workflow_dispatch:
+
+jobs:
+  build:
+
+    runs-on: ubuntu-latest
+
+    steps:
+      - uses: actions/checkout@v2
+      - name: Build the site in the jekyll/builder container
+        uses: actions/[email protected]
+        with:
+          # Set always-auth in npmrc
+          always-auth: false # optional, default is false
+          # Version Spec of the version to use.  Examples: 12.x, 10.15.1, 
>=10.15.0
+          node-version: 14.x # optional
+          # Target architecture for Node to use. Examples: x86, x64. Will use 
system architecture by default.
+          architecture: x64
+      - run: |
+          echo "building systemds website"
+          sudo gem install jekyll
+          sudo npm install -g gulp
+          npm install
+          gulp build
+
diff --git a/gulpfile.js b/gulpfile.js
index aac521c..83e4d85 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -127,4 +127,8 @@ function watch() {
     gulp.series(jekyllBuild, browserSyncReload));
 }
 
+// Build
+gulp.task('build', gulp.series(style, js, jekyllBuild))
+
+// Build and serve (with incremental) for development
 gulp.task('default', gulp.series(style, js, jekyllBuild, browserSyncServe, 
watch))

Reply via email to