name: Build and Deploy GH Pages with Jekyll Actions on: push: branches: - master jobs: github-pages: runs-on: ubuntu-16.04 steps: - uses: actions/checkout@v2 # 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.lock') }} restore-keys: | ${{ runner.os }}-gems- # Specify the target branch (optional) - uses: helaili/jekyll-action@v2 env: JEKYLL_PAT: ${{ github.actor }}:${{ github.token }} with: target_branch: 'gh-pages'