feat: initial implementation of microprofile-openapi-3 #479
Workflow file for this run
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 |