parent
43d0ef3fa0
commit
56ef270e27
|
|
@ -59,4 +59,4 @@ jobs:
|
||||||
- name: Download released earth
|
- name: Download released earth
|
||||||
run: "sudo /bin/sh -c 'wget https://github.com/earthly/earthly/releases/download/v0.5.7/earthly-linux-amd64 -O /usr/local/bin/earthly && chmod +x /usr/local/bin/earthly'"
|
run: "sudo /bin/sh -c 'wget https://github.com/earthly/earthly/releases/download/v0.5.7/earthly-linux-amd64 -O /usr/local/bin/earthly && chmod +x /usr/local/bin/earthly'"
|
||||||
- name: Execute tests
|
- name: Execute tests
|
||||||
run: earthly --build-arg RUBY=${{ matrix.ruby_version }} +style-check
|
run: earthly --build-arg RUBY=${{ matrix.ruby_version }} +style-check
|
||||||
|
|
|
||||||
|
|
@ -12,23 +12,16 @@ jobs:
|
||||||
deploy_docs:
|
deploy_docs:
|
||||||
if: "!contains(github.event.commits[0].message, '[ci skip]')"
|
if: "!contains(github.event.commits[0].message, '[ci skip]')"
|
||||||
runs-on: 'ubuntu-latest'
|
runs-on: 'ubuntu-latest'
|
||||||
|
env:
|
||||||
|
BUNDLE_PATH: "vendor/bundle"
|
||||||
|
BUNDLE_JOBS: 4
|
||||||
|
BUNDLE_RETRY: 3
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-ruby@v1
|
- uses: ruby/setup-ruby@v1
|
||||||
with:
|
with:
|
||||||
ruby-version: ${{ env.RUBY_VERSION }}
|
ruby-version: ${{ env.RUBY_VERSION }}
|
||||||
- name: Setup cache for Bundler
|
bundler-cache: true
|
||||||
id: cache
|
|
||||||
uses: actions/cache@v2.1.5
|
|
||||||
with:
|
|
||||||
path: vendor/bundle
|
|
||||||
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-gems-
|
|
||||||
- name: Set up dependencies
|
|
||||||
run: |
|
|
||||||
bundle install --path=vendor/bundle --jobs 4 --retry 3
|
|
||||||
bundle clean
|
|
||||||
- name: Clone target branch
|
- name: Clone target branch
|
||||||
run: |
|
run: |
|
||||||
REMOTE_BRANCH="${REMOTE_BRANCH:-gh-pages}"
|
REMOTE_BRANCH="${REMOTE_BRANCH:-gh-pages}"
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,11 @@ jobs:
|
||||||
build_n_profile:
|
build_n_profile:
|
||||||
if: "!contains(github.event.commits[0].message, '[ci skip]')"
|
if: "!contains(github.event.commits[0].message, '[ci skip]')"
|
||||||
runs-on: 'ubuntu-latest'
|
runs-on: 'ubuntu-latest'
|
||||||
|
env:
|
||||||
|
BUNDLE_GEMFILE: "sandbox/Gemfile"
|
||||||
|
BUNDLE_PATH: "vendor/bundle"
|
||||||
|
BUNDLE_JOBS: 4
|
||||||
|
BUNDLE_RETRY: 3
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Jekyll
|
- name: Checkout Jekyll
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
@ -23,23 +28,10 @@ jobs:
|
||||||
repository: ashmaroli/tomjoht.github.io
|
repository: ashmaroli/tomjoht.github.io
|
||||||
path: sandbox
|
path: sandbox
|
||||||
- name: Set up Ruby
|
- name: Set up Ruby
|
||||||
uses: actions/setup-ruby@v1
|
uses: ruby/setup-ruby@v1
|
||||||
with:
|
with:
|
||||||
ruby-version: 2.7
|
ruby-version: 2.7
|
||||||
- name: Set up Dependencies Cache
|
bundler-cache: true
|
||||||
uses: actions/cache@v2.1.5
|
|
||||||
with:
|
|
||||||
path: sandbox/vendor/bundle
|
|
||||||
key: ubuntu-latest-gems-${{ hashFiles('**/Gemfile.lock') }}
|
|
||||||
restore-keys: |
|
|
||||||
ubuntu-latest-gems-
|
|
||||||
- name: Set up Dependencies
|
|
||||||
run: |
|
|
||||||
gem update --system --no-document
|
|
||||||
gem update bundler --no-document
|
|
||||||
bundle config gemfile sandbox/Gemfile
|
|
||||||
bundle config path vendor/bundle
|
|
||||||
bundle install --jobs 4 --retry 3
|
|
||||||
- name: Run Jekyll Build 3 times
|
- name: Run Jekyll Build 3 times
|
||||||
run: |
|
run: |
|
||||||
bundle exec jekyll build -s sandbox -d sandbox/_site --trace
|
bundle exec jekyll build -s sandbox -d sandbox/_site --trace
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue