Skip to content

Update github actions/checkout and actions/cache to v3 (#1727) #37

Update github actions/checkout and actions/cache to v3 (#1727)

Update github actions/checkout and actions/cache to v3 (#1727) #37

Workflow file for this run

name: Deploy
on:
push:
branches: [ 'main' ]
jobs:
deploy:
permissions:
contents: write
runs-on: ubuntu-latest
env:
ruby-version: 2.6
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ env.ruby-version }}
- uses: actions/cache@v3
with:
path: vendor/bundle
key: gems-${{ runner.os }}-${{ env.ruby-version }}-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
gems-${{ runner.os }}-${{ env.ruby-version }}-
gems-${{ runner.os }}-
- run: bundle config set deployment 'true'
- name: bundle install
run: |
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
- run: bundle exec middleman build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
keep_files: true