set figure to max-width: 100% #36 #37
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 Slides | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
concurrency: | |
cancel-in-progress: true | |
group: >- | |
${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
jobs: | |
deploy-slides: | |
env: | |
BUNDLE_GEMFILE: ${{ github.workspace }}/slides/Gemfile | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@v4 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: "3.2" | |
bundler-cache: true | |
- name: Install and Build | |
working-directory: ./slides | |
run: >- | |
JEKYLL_GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} | |
JEKYLL_ENV=production | |
bundle exec jekyll build | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./slides/_site | |
publish_branch: gh-pages | |
user_name: github-actions[bot] | |
user_email: github-actions[bot]@users.noreply.github.com |