diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml index 0df54af4..28122ea4 100644 --- a/.github/workflows/github-pages.yml +++ b/.github/workflows/github-pages.yml @@ -8,20 +8,16 @@ on: - '_data/**' - '.github/workflows/twitter.yml' -jobs: - github-pages: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/cache@v2 - with: - path: vendor/bundle - key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile') }} - restore-keys: | - ${{ runner.os }}-gems- - - uses: helaili/jekyll-action@2.0.5 # Choose any one of the Jekyll Actions - with: - target_branch: 'gh-pages' - env: - JEKYLL_PAT: ${{ secrets.JEKYLL_PAT }} - \ No newline at end of file + # 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' \ No newline at end of file