update #2
This file contains hidden or 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] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: "3.2" | |
| bundler-cache: true | |
| - name: Install dependencies | |
| run: | | |
| cd docs | |
| gem install bundler -v 2.6.7 | |
| bundle config set path 'vendor/bundle' | |
| bundle install | |
| - name: Generate content | |
| run: | | |
| cd docs | |
| chmod +x *.sh # Fix permissions | |
| ./generate_readmes.sh | |
| ./update_stats.sh | |
| - name: Build site | |
| run: | | |
| cd docs | |
| bundle exec jekyll build | |
| - uses: peaceiris/actions-gh-pages@v3 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./docs/_site |