name: Build and deploy Jekyll site to GitHub Pages on: push: branches: - master paths-ignore: - '_data/**' - '.github/workflows/twitter.yml' # Use GitHub Actions' cache to shorten build times and decrease load on servers - uses: actions/cache@v2 with: path: vendor/bundle key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile') }} restore-keys: | ${{ runner.os }}-gems- # Specify the target branch (optional) - uses: helaili/jekyll-action@v2 with: token: ${{ secrets.GITHUB_TOKEN }} target_branch: 'gh-pages'