1name: Docs 2on: 3 push: 4 branches: [ main ] 5jobs: 6 deploy: 7 name: Deploy docs 8 runs-on: ubuntu-20.04 9 steps: 10 - uses: actions/checkout@v2 11 - uses: ruby/setup-ruby@v1 12 with: 13 ruby-version: 2.7 14 - name: Install Ruby dependencies 15 run: bundler install 16 working-directory: docs 17 - name: Build site 18 run: jekyll build 19 - name: Deploy 20 uses: peaceiris/actions-gh-pages@v3 21 with: 22 github_token: ${{ secrets.GITHUB_TOKEN }} 23 publish_dir: ./_site