From c4c5ac010bb07bdcb6e5c08d0856ceaeb62900da Mon Sep 17 00:00:00 2001 From: Taruma Sakti Date: Wed, 23 Mar 2022 20:37:21 +0700 Subject: [PATCH 1/2] add ga jekyll build --- .github/workflows/build.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..df6b5a6 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,20 @@ +name: Jekyll Build +on: + push: + branches: + - master + pull_request: + type: [opened, reopened, synchronize] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: 2.6 # Not needed with a .ruby-version file + bundler-cache: true # runs 'bundle install' and caches installed gems automatically + # - run: bundle exec htmlproofer _site --assume-extension --disable-external + - run: bundle exec jekyll build -s docs -d _site --config docs/_config_local.yml + From fb496d59ea36b9287d0fc6fb3112b7ed7af076ae Mon Sep 17 00:00:00 2001 From: Taruma Sakti Date: Wed, 23 Mar 2022 20:45:30 +0700 Subject: [PATCH 2/2] add path to gems --- .github/workflows/build.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index df6b5a6..7697099 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,8 +7,10 @@ on: type: [opened, reopened, synchronize] jobs: - test: + jekyll_build: runs-on: ubuntu-latest + env: + BUNDLE_GEMFILE: ${{ github.workspace }}/docs/Gemfile steps: - uses: actions/checkout@v2 - uses: ruby/setup-ruby@v1