You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wayang.apache.org by be...@apache.org on 2021/02/15 06:08:59 UTC

[incubator-wayang-website] 05/29: Adding the github action

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

bertty pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/incubator-wayang-website.git

commit 8d3ad1abd33312d7d2e8b764016cfb72853bc415
Author: Bertty Contreras-Rojas <be...@scalytics.io>
AuthorDate: Sun Feb 14 01:18:56 2021 -0300

    Adding the github action
---
 .github/workflows/html_publication.yml | 24 ++++++++++++++++++++++++
 Gemfile                                |  5 +++++
 _config.yml                            |  8 ++++++++
 3 files changed, 37 insertions(+)

diff --git a/.github/workflows/html_publication.yml b/.github/workflows/html_publication.yml
new file mode 100644
index 0000000..9819766
--- /dev/null
+++ b/.github/workflows/html_publication.yml
@@ -0,0 +1,24 @@
+name: Compilation of the Webpage
+
+on:
+  push
+
+jobs:
+  jekyll:
+    runs-on: ubuntu-16.04
+    steps:
+      - uses: actions/checkout@v2
+
+      # Use GitHub Actions' cache to shorten build times and decrease load on servers
+      - uses: actions/cache@v2
+        with:
+          path: vendor/bundle
+          key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile') }}
+          restore-keys: |
+            ${{ runner.os }}-gems-
+
+      # Specify the target branch
+      - uses: helaili/jekyll-action@v2
+        with:
+          token: ${{ secrets.GITHUB_TOKEN }}
+          target_branch: 'gh-pages'
\ No newline at end of file
diff --git a/Gemfile b/Gemfile
index d99d5b0..4285530 100644
--- a/Gemfile
+++ b/Gemfile
@@ -7,3 +7,8 @@ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
 # gem "rails"
 
 gem "jekyll", "~> 4.2"
+gem 'coderay', '~> 1.1.0'
+
+group :jekyll_plugins do
+  gem 'jekyll-asciidoc', '~> 2.1.1'
+end
\ No newline at end of file
diff --git a/_config.yml b/_config.yml
index 649e38b..27cdcb5 100644
--- a/_config.yml
+++ b/_config.yml
@@ -4,3 +4,11 @@ title: "Apache Wayang"
 collections:
   publications:
     output: true
+asciidoc: {}
+asciidoctor:
+  base_dir: :docdir
+  safe: unsafe
+  attributes:
+    - idseparator=_
+    - source-highlighter=coderay
+    - icons=font
\ No newline at end of file