olabusayoT commented on a change in pull request #16: Automate 
building/publishing of the website
URL: 
https://github.com/apache/incubator-daffodil-site/pull/16#discussion_r369243926
 
 

 ##########
 File path: .github/workflows/main.yml
 ##########
 @@ -0,0 +1,66 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+name: Publish Daffodil Site
+
+on: [push]
+
+jobs:
+  test:
+    name: Publish Site
+    runs-on: ubuntu-latest
+    strategy:
+      fail-fast: false
+    steps:
+
+      - name: Checkout Repository
+        uses: actions/[email protected]
+
+      - name: Install Ruby
+        uses: actions/setup-ruby@v1
+        with:
+          ruby-version: '2.6'
+
+      - name: Install Python
+        uses: actions/setup-python@v1
+        with:
+          python-version: '3.5'
+
+      - name: Install Dependencies
+        run: |
+          sudo apt-get install graphviz
+          bundle install
+          python -m pip install --upgrade pip
+          pip install blockdiag
+          pip install seqdiag
+          pip install actdiag
+          pip install nwdiag
+
+      - name: Build 
+        run: |
+          jekyll clean --source site
+          jekyll build --source site
+
+      - name: Publish
+        if: github.repository == 'apache/incubator-daffodil'
 
 Review comment:
   Should this say "apache/incubator-daffodil-site"?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to