chore(deps): bump rexml from 3.3.3 to 3.3.6 in /slate-docs (#469) #460
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: Slate Docs | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
release: | |
types: | |
- created | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
ruby-version: 3.3 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ env.ruby-version }} | |
- uses: actions/cache@v1 | |
with: | |
path: vendor/bundle | |
key: gems-${{ runner.os }}-${{ env.ruby-version }}-${{ hashFiles('**/Gemfile.lock') }} | |
- run: bundle config set deployment 'true' | |
working-directory: ./slate-docs | |
- run: bundle install | |
working-directory: ./slate-docs | |
- run: bundle exec middleman build | |
working-directory: ./slate-docs | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
if: ${{ github.event_name == 'release' }} | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./slate-docs/build |