diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml index 2a738b1..3b51add 100644 --- a/.github/workflows/github-pages.yml +++ b/.github/workflows/github-pages.yml @@ -1,4 +1,4 @@ -name: Build and deploy Jekyll site to GitHub Pages +name: Build and Deploy GH Pages with Jekyll Actions on: push: @@ -7,9 +7,22 @@ on: jobs: github-pages: - runs-on: ubuntu-latest + runs-on: ubuntu-16.04 + steps: - uses: actions/checkout@v2 - - uses: helaili/jekyll-action@2.0.5 + + # 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: ${{ secrets.JEKYLL_PAT }} + with: + target_branch: 'gh-pages' diff --git a/.github/workflows/jekyll.yml b/.github/workflows/jekyll.yml deleted file mode 100644 index 149710d..0000000 --- a/.github/workflows/jekyll.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: Build and Deploy GH Pages with Jekyll Actions - -on: - push: - branches: - - master - -jobs: - jekyll: - 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- - - # Standard usage - - uses: helaili/jekyll-action@v2 - env: - # Ideally use GITHUB_TOKEN but it gives error for this action. - JEKYLL_PAT: ${{ secrets.JEKYLL_PAT }} - - # Specify the target branch (optional) - - uses: helaili/jekyll-action@v2 - env: - JEKYLL_PAT: ${{ secrets.JEKYLL_PAT }} - with: - target_branch: 'gh-pages'