This repository has been archived by the owner on Sep 11, 2024. It is now read-only.
Merge pull request #299 from Asana/aw-asana-deprecate-api-explorer #232
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy | |
on: | |
push: | |
branches: [ 'master' ] | |
jobs: | |
deploy: | |
runs-on: ubuntu-20.04 | |
env: | |
ruby-version: 2.5 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ env.ruby-version }} | |
- 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 | |
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 |