33 lines
954 B
YAML
33 lines
954 B
YAML
name: Powerlevel10k Documentation on Push
|
|
on: push
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
ruby-version: 2.6
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Set up Ruby
|
|
uses: ruby/setup-ruby@v1
|
|
with:
|
|
ruby-version: ${{ env.ruby-version }}
|
|
bundler-cache: true # runs 'bundle install' and caches installed gems automaticall
|
|
|
|
- uses: actions/cache@v2
|
|
with:
|
|
path: vendor/bundle
|
|
key: gems-${{ runner.os }}-${{ matrix.ruby-version }}-${{ hashFiles('**/Gemfile.lock') }}
|
|
restore-keys: |
|
|
gems-${{ runner.os }}-${{ matrix.ruby-version }}-
|
|
gems-${{ runner.os }}-
|
|
- run: bundle config set deployment 'true'
|
|
- name: bundle install
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
run: |
|
|
cd docs
|
|
bundle config path vendor/bundle
|
|
bundle install --jobs 4 --retry 3
|
|
chmod +x deploy.sh
|
|
./deploy.sh |