• limjh16 - jekyll-action-ts

That is fork of Jekyll Actions action, with the differences that the fork is built in TS not Docker and it doesn’t to publish for you (the docs add a step for publishing)

Which is great. As it means this Jekyll action has a narrow scope and it is also easy to add an extra step to publish to GH Pages. The docs recommend a popular action by PeaceIris, as shown in the last step below.

It appears you have to first set up Ruby and then use this Jekyll-related action.

This uses TypeScript instead of Docker, so is supposed should be quicker to download than the original action. It also is more flexible to handle non-default use-cases.

Sample usage based on the docs.

  • main.yml
      name: Build and deploy
    
      on:
        push:
          branches:
            - master
    
      jobs:
        jekyll:
          name: Build and deploy
    
          runs-on: ubuntu-latest
    
          steps:
            - name: Checkout πŸ›Ž
              uses: actions/checkout@v2
    
            - name: Set up Ruby πŸ’Ž
              uses: ruby/setup-ruby@v1
              with:
                ruby-version: 2.7
    
            - name: Install dependencies and build site πŸ”¨
              uses: limjh16/jekyll-action-ts@v2
              with:
                enable_cache: true
    
            - name: Deploy to GH Pages πŸš€
              if: ${{ github.event_name != 'pull_request' }}
              uses: peaceiris/actions-gh-pages@v3
              with:
                github_token: ${{ secrets.GITHUB_TOKEN }}
                publish_dir: _site