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/22 05:26:10 UTC
[incubator-wayang-website] 31/37: Change github action to travis
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 70459e84aa6f01702542006c94f121003da20702
Author: Bertty Contreras-Rojas <be...@scalytics.io>
AuthorDate: Mon Feb 22 01:39:13 2021 -0300
Change github action to travis
---
.travis.yml | 27 +++++++++++----------------
Gemfile | 3 +--
script/cibuild | 20 +++++++++++++++++++-
3 files changed, 31 insertions(+), 19 deletions(-)
diff --git a/.travis.yml b/.travis.yml
index 2b16b90..9569a42 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,26 +1,21 @@
language: ruby
rvm:
- - 2.6.3
-
+- 2.6.3
before_script:
- - chmod +x ./script/cibuild # or do this locally and commit
-
+- chmod +x ./script/cibuild
install: bundle install
-script: ./script/cibuild
-
-# branch whitelist, only for GitHub Pages
+script: "./script/cibuild"
branches:
only:
- - develop
- - main
-
+ - develop
+ - main
addons:
apt:
packages:
- - libcurl4-openssl-dev
-
-cache: bundler # caching bundler gem packages will speed up build
-
-# Optional: disable email notifications about the outcome of your builds
+ - libcurl4-openssl-dev
+cache: bundler
notifications:
- email: false
\ No newline at end of file
+ email: false
+env:
+ global:
+ secure: GqzCosWAev40ym9KPKGwGljdrDkVBcjh/+p39XrhaR2wTnstC7ygcVLFj4TSH8Wtt1zrawJSFNrqid62OQirsnYwx9DE2FB1hDApkv3Z9uxLj4Fg4npGQe6EnyVPev9bvxv2wLQgi8sxbabW2eOpYBuSXCV/Lsyikv8aKyCBKtTKiYYUgfLiB+CfLcIUm7LoHznBcOfv9J8VCvGsWCuNmgszRiVdbGy0CFcw4qAmw9p7iApiszlAvSuF1tvAaXxITK3nFfZZOCx6GlFnY8/lSn3k6wKqGsfD60Bmgk3eBwtM5iiltK1O7I1vOLXGNEQkfFsemDWI5GkVAcUSr1BnMFDYS5Cvw1BNbc4xHAmtovTWUzokKep0EuhRiuFFVnEHXqPTApEs+VZvhAwGTiafAymKGo6INGtHG5yBsvLZMADk0VpTRG3TDXFHQMTsFjCZ3IYLcKYoOmLYBOcS4Rk4HQLvQdVwivTt [...]
diff --git a/Gemfile b/Gemfile
index 24101ca..5face85 100644
--- a/Gemfile
+++ b/Gemfile
@@ -13,5 +13,4 @@ group :jekyll_plugins do
gem 'jekyll-asciidoc', '~> 2.1.1'
end
-
-gem "html-proofer"
\ No newline at end of file
+gem "html-proofer"
diff --git a/script/cibuild b/script/cibuild
index 4d5702d..ffb2078 100644
--- a/script/cibuild
+++ b/script/cibuild
@@ -1,5 +1,23 @@
#!/usr/bin/env bash
set -e # halt script on error
+URL="https://wayang.apache.org"
+BASE_URL="/"
+BRANCH_PAGE=asf-site
+
+echo "url: \"${URL}\"" > _config.yml.tmp
+echo "baseurl: \"${BASE_URL}\"" >> _config.yml.tmp
+cat _config.yml | grep -v "url:" >> _config.yml.tmp
+mv _config.yml.tmp _config.yml
+
bundle exec jekyll build
-bundle exec htmlproofer ./_site
\ No newline at end of file
+#bundle exec htmlproofer ./_site
+
+cd _site
+
+git checkout --orphan ${BRANCH_PAGE}
+
+git add -A
+git status
+git commit -m "Lastest site built on successful travis build $TRAVIS_BUILD_NUMBER auto-pushed to github"
+git push origin ${BRANCH_PAGE}:${BRANCH_PAGE}