You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by GitBox <gi...@apache.org> on 2020/01/21 19:47:57 UTC

[GitHub] [incubator-daffodil-site] stevedlawrence opened a new pull request #16: Automate building/publishing of the website

stevedlawrence opened a new pull request #16: Automate building/publishing of the website
URL: https://github.com/apache/incubator-daffodil-site/pull/16
 
 
   Creating the website can be completely automated, and can be done in a
   way that avoids environmental differences between developers systems.
   This configured a github action to automatically build and publish the
   github website everytime the master branch is update. A Gem file is used
   to define dependencies and ensure consistency. The publish.sh script is
   no longer needed, so it is deleted.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-daffodil-site] stevedlawrence commented on a change in pull request #16: Automate building/publishing of the website

Posted by GitBox <gi...@apache.org>.
stevedlawrence 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_r369271673
 
 

 ##########
 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/checkout@v1.0.0
+
+      - 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:
   Good catch! Both issues fixed.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-daffodil-site] olabusayoT commented on a change in pull request #16: Automate building/publishing of the website

Posted by GitBox <gi...@apache.org>.
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_r369243104
 
 

 ##########
 File path: README.md
 ##########
 @@ -25,15 +25,19 @@ The website is generated using [Jekyll](https://jekyllrb.com/) and some plug-ins
 
 # How to deploy this web site
 
-## Install Jekyll
+## Install Ruby Bundler
 
-Some Linux distributions provide Jekyll via their package managers, for example, for Fedora 25
+Some Linux distributions provide the Ruby Bundler via their package managers, for example, for Fedora:
 
-    $ dnf install rubygem-jekyll
+    $ dnf install rubygem-bundler
 
-Alternatively, Jekyll can be installed using gem:
+## Install or Update Site Dependencies
 
-    $ gem install jekyll
+    $ gem install
+
+or
+
+    $ gen update
 
 Review comment:
   Should this say "gem update"?

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-daffodil-site] olabusayoT commented on a change in pull request #16: Automate building/publishing of the website

Posted by GitBox <gi...@apache.org>.
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/checkout@v1.0.0
+
+      - 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:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-daffodil-site] stevedlawrence merged pull request #16: Automate building/publishing of the website

Posted by GitBox <gi...@apache.org>.
stevedlawrence merged pull request #16: Automate building/publishing of the website
URL: https://github.com/apache/incubator-daffodil-site/pull/16
 
 
   

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services